2 ms·
That was my thought too. Why would I import somebody's 3rd party library to save myself typing document.getElementById once on this page? I'm sure jquery has
by jasonkester 17y ago
That was my thought too. Why would I import somebody's 3rd party library to save myself typing document.getElementById once on this page?
I'm sure jquery has its advantages for some things. Silly little javascript tricks like this don't seem to me like they qualify.
- briancray 17y agoReally great points about javascript everyone! I guess I figured it was better to show how to do it with jQuery because many people are interested in jQuery, and this code snippet gives them an extra idea how jQuery works. Thanks so much for your feedback!