Home
|
Tutorials
|
Articles
|
Videos
|
Products
|
Tools
|
Search
Interviews
|
Open Source
|
Tag Cloud
|
Follow Us
|
Bookmark
|
Contact
In Browser
StumbleUpon
del.icio.us
Google
Google Buzz
reddit
LinkedIn
Facebook
Twitter
Linkedin
E-Mail
Home
Tutorials
Articles
Search Tutorials
Products
Authors
Submit a Tutorial
Report a Bug
Interview FAQ
Subscribe
Articles
>
jQuery
> How to remove all CSS classes in jQuery
How to remove all CSS classes in jQuery
Author:
Venkata Sudhakar
The below example shows how to remove all CSS classes in
jQuery
.
BE THE CODER
//Remove a single Class $("#title").removeClass('bold'); $("#title").removeClass('italic'); //Remove multiple classes by providing space-separated class names $("#title").removeClass('bold italic'); $("#title").removeClass('bold red'); $("#title").removeClass('bold italic red'); //Remove all CSS classes by calling 'removeClass' without any parameters $("#title").removeClass();
Home
|
Tutorials
|
Random Tutorial
|
Articles
|
Videos
|
Search
|
Google Search
|
Products
|
Student Projects
|
Open Source
Tools
|
Tips And Tricks
|
How to Fix
|
Tag Cloud
|
Share
|
Disclaimer
|
Privacy
|
Contact
|
Login
Send your comments, suggestions or queries regarding this site to
[email protected]
.
Copyright © 2008-2024. All rights reserved.