What is the use $ character in jQuery

Last Reply on Aug 06, 2015 07:53 AM By Shashikant

Posted on Aug 06, 2015 07:45 AM

What’s the deal with the $ in jQuery? What is it and what does it mean?

Posted on Aug 06, 2015 07:52 AM

$ is an object of jQuery library which has all the properties and functions.


Posted on Aug 06, 2015 07:53 AM

Hi rjregina,

$ sign is use to define/access jQuery

Basic syntex of Jquery is $(Selector).action()

  • A $ sign is use to define/access jQuery
  • A (selector) to "query (or find)" HTML elements
  • A jQuery action() to be performed on the element(s)

for more details refer below links

http://www.w3schools.com/jquery/jquery_syntax.asp

http://learn.jquery.com/using-jquery-core/dollar-object-vs-function/

I hope this will help you out.