Possible duplicate:
What is the meaning of the $ sign in JavaScript?
Now this should be a simple and silly question, but I should know why we use the dollar sign ( $ ) in jQuery and JavaScript. I always put a dollar in my scripts, but I, actuary, don't know why.
For example:
$('#Text').click(function () { $('#Text').css('color', 'red') });
It just changes the color of the text when you click on it, but it demonstrates my point.
javascript jquery
GeekMasher Dec 29 '11 at 12:12 2011-12-29 12:12
source share