Maybe something like this
HTML: <div id="div1" class="someclass">Text</div> JQuery: $("div.someclass").css("background-color":"red");
or
$("#div1").css("background-color":"red");
I often use this to make sure the script matches the right element or element.
source share