jquery assign class to element code example
Example 1: jquery addclass
$("#elem").addClass("classname");
Example 2: addclass jquery
$( "p" ).addClass( "myClass yourClass" );
Example 3: add class jquery
$("#my_id").attr("class", "my_new_class_name");