3 ms·
In many js libraries $ is an alias for document.getElementById, whereas in jQuery it's an alias for jQuery. It might have been a reasonable question to ask.
by Joeboy 16y ago
In many js libraries $ is an alias for document.getElementById, whereas in jQuery it's an alias for jQuery. It might have been a reasonable question to ask.
- dspillett 16y agoNot for someone who is "intermediate" in jQuery. He didn't even recognise $ as a valid function name which rules out exposure to other libraries mapping it to different behaviours, and the use of an anonymous function (remember: this is someone who claimed to be "advanced" in Javascript) really blew his mind.