4
Contributors
6
Replies
7
Views
5 Years
Discussion Span
Last Post by stbuchok
0

It is just a short code for the jQuery variable. So instead of writing your code:

jQuery(document).ready(function() {
.
.
.
});

You can write:

$(document).ready(function() {
.
.
.
});
0

Thank you,
but i want exact meaning of '$' in jquery why it is used .No other symbol used instead of $ sign

0

I can't answer that as I didn't develop jQuery - maybe you should go to the jQuery website and ask them.

However the $ symbol is used in programming to indicate variables in use so maybe that is why - it is calling the jQuery variable.

Edited by simplypixie: n/a

0

it's probably because jquery is really a package of javascript functions in js files so to run it you have to call the function jQuery() or $();

1

I will say this again, it is the global object.

jQuery is also the global object, but to make it easier they made $ equal jQuery.

So instead of typeing jQuery('blah').click(function(){ ... }); you type $('blah').click(function(){ ... });

I'm really not sure how much clearer I can make this, I've already said this once.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.