I used $
instead of document.getElementById()
in javascript and i don't know what is the use of $$
. Can any one please tell me what is the use of $$
?
Here is the code:
var link_object = $$('a[class="menu_item"]');
if (window.location.href.search('inident.do') >= 0) {
link_object.each(function (elem) {
if (elem.innerHTML == 'Create an Incident') {
elem.style.fontWeight = 'bold';
elem.style.color = 'black';
}
});
}