Muhammad Naeem
Software Engineer
Tuesday, 15 May 2012
Add or remove CSS class using jquery
Add or remove CSS class using jquery
Add CSS Class:
$("#id").addClass("newClass anotherClass");
Remove CSS Class:
$("#id").removeClass("newClass anotherClass").addClass("changeClass");
Note: '#id' can be change to 'p','div.classname' etc
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment