Green Computers Green Computers - 1 year ago 126
jQuery Question

jQuery selector with double dollor ($$)

I am working on a project, in that they have used $$ to select an id/class. I am not sure about this. Can anybody tell me what does this mean. I googled it. But did not get proper answer.

$$("#" + idName + "text").setStyle('background', '#000');

Answer Source

It's simply some library shorthand. Like jQuery assigns itself variable $, some other library may assign $$ to itself to avoid conflicting with jQuery

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download