set new class with jquery code example
Example 1: jquery addclass
$("#elem").addClass("classname");
Example 2: jquery addclass
$( "p" ).removeClass( "myClass noClass" ).addClass( "yourClass" );
$("#elem").addClass("classname");
$( "p" ).removeClass( "myClass noClass" ).addClass( "yourClass" );