Possible Duplicate:
What is the meaning of “$” sign in javascript
I’ve encountered a code in JavaScript that looks like this:
$('svg circle').tipsy({
gravity: 'w',
html: true,
title: function() {
return 'Color: ';
}
});
What does $('') mean here?
Usually when you encounter
$(), that means the developer is using a javascript library, such as jQuery.The
$symbol is the namespace for those libraries. All the functions they define begin with$., such as$.get(). Passing the id of an html tag like this:$("#myId")will give you a jQuery object representing that node.