|
How to remove all CSS classes in jQuery
Author: Venkata Sudhakar
The below example shows how to remove all CSS classes in jQuery.
01 | <div id= "title" class= "bold italic red" >BE THE CODER</div> |
04 | $( "#title" ).removeClass( 'bold' ); |
05 | $( "#title" ).removeClass( 'italic' ); |
08 | $( "#title" ).removeClass( 'bold italic' ); |
09 | $( "#title" ).removeClass( 'bold red' ); |
10 | $( "#title" ).removeClass( 'bold italic red' ); |
13 | $( "#title" ).removeClass(); |
|
|