codingtcher.com
Theme Night
Home
Login

Jquery addclass

//add class jquery
$( "p" ).addClass( "myClass yourClass" );

//jquery remove and add class
$( "#foo" ).removeClass( 'className');

$( "#foo" ).addClass( 'className');

Related Code