4 ms·
Sometimes you just have a single element to show/hide on an otherwise static or very simple page. It's satisfying to make that work in minutes with just a coupl
by gregmac 8y ago
Sometimes you just have a single element to show/hide on an otherwise static or very simple page. It's satisfying to make that work in minutes with just a couple lines of code, which you can craft/tweak in your browser dev tools console if you like.
- simplify 8y agoIf that's the case, then document.querySelector works like a charm.