Top "Addclass" questions

jQuery is a JavaScript library, consider also adding the JavaScript tag.

How to: Add/Remove Class on mouseOver/mouseOut - JQuery .hover?

Looking to change the border color on a box.. ..when the user mouses over/out.. Here's the attempted code.. Needs …

jquery hover addclass removeclass jquery-hover
jQuery add/remove Class with fadeIn/Out

I would to apply a fadeIn effect to a addClass function..and fadeOut to removeClass... Can you help me? This …

jquery fadein fadeout addclass removeclass
Remove all classes except one

Well, I know that with some jQuery actions, we can add a lot of classes to a particular div: <…

javascript jquery class addclass removeclass
Check if class already assigned before adding

In jQuery, is it recommended to check if a class is already assigned to an element before adding that class? …

jquery addclass
Can I put delay(500) before an addClass()?

$(document).ready(function(){ $("#info-text-container").click(function(){ $("#info-text").delay(500).addClass("info-text-active"); }); }); This does not put an delay on it when it …

jquery delay addclass
jquery addClass() not working with event.target

Please help. Why is the jquery addClass() not working with event.target? I have made a code and it supposed …

jquery events target addclass
Should I use "hasClass" before "addClass"?

I have come across the following script which checks whether an element has class a, and if not, adds it: …

jquery performance addclass
Can I delay jQuery addClass?

Is there a way to delay the addClass() of jQuery? For example this code $('#sampleID').delay(2000).fadeOut(500).delay(2000).addClass(…

jquery delay addclass
addClass to getElementsByClassName array

I need a little help as i am getting frustrated with .getElementsByClassName. I have an svg map that has paths …

jquery arrays svg addclass getelementsbyclassname
Highlight current page navigation link

I've hardcoded a subnavigation and would like to highlight the navbar item of the current page by simply adding a …

jquery navigation addclass current-page