Skip to content

What does $ mean in jQuery or JavaScript?

Updated 21 Aug 2018
In jQuery the variable is assigned a copy of the jQuery function. This function is heavily overloaded and means half a dozen different things depending on what arguments it is passed. In this particular example, you are passing it a string that contains a selector, so the function means "Create a jQuery object containing the element with the id Text".

Author: stackoverflow.com

More code answers

Comments

Log in to leave a comment.