jqry add class code example
Example 1: add class jquery
$("#my_id").attr("class", "my_new_class_name");
Example 2: how to add class on the base of has class in jquery
$( "p" ).addClass( "myClass yourClass" );
$("#my_id").attr("class", "my_new_class_name");
$( "p" ).addClass( "myClass yourClass" );