How to get, set, and remove attributes from elements with JavaScript
Source code from this tutorial: https://gist.github.com/cferdinandi/d7166dc2f0404f46e0fc2bab0bad9b86
Hate the complexity of modern front‑end web development? I send out a short email each weekday on how to build a simpler, more resilient web. Join over thousands of others at https://gomakethings.com.