Friday, April 5, 2019

Remove a specific class from all child elements, and add new class



$('#parentDiv').find("*").removeClass("old-class").addClass("new-class");

No comments:

Post a Comment

Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.Please don't spam,spam comments will be deleted upon reviews.