Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / web / HTML

Handling CSS by using jQuery

4.88/5 (6 votes)
16 Jul 2011CPOL 8.4K  
One can chain in the classes in jQuery like:$( #divRGB ).removeClass('classBLUE').removeClass('classGREEN').addClass('classRED');thus optimise it.
One can chain in the classes in jQuery like:
$( "#divRGB" ).removeClass('classBLUE').removeClass('classGREEN').addClass('classRED');

thus optimise it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)