How to Addand Remove an HTML Class ?
jQuery Interview Questions and Answers
(Continued from previous question...)
How to Addand Remove an HTML Class ?
add the addClass call to your script:
$("a").addClass("test");
To remove the class, use removeClass
$("a").removeClass("test");
(Continued on next question...)
Other Interview Questions
|