Green Computers Green Computers - 11 months ago 67
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');


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