add class to element by name 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" );