add my class to jquery object code example
Example 1: jquery addclass
$( "p" ).addClass( "myClass yourClass" );
Example 2: add class jquery
$("#my_id").attr("class", "my_new_class_name");
$( "p" ).addClass( "myClass yourClass" );
$("#my_id").attr("class", "my_new_class_name");