add a class to an element in jquery code example
Example 1: jquery addclass
$("#elem").addClass("classname");
Example 2: jquery addclass
$( "p" ).addClass( "myClass yourClass" );
$("#elem").addClass("classname");
$( "p" ).addClass( "myClass yourClass" );