how to add class using attribute in jquery code example
Example 1: addclass jquery
$( "p" ).addClass( "selected highlight" );
Example 2: add class jquery
$("#my_id").attr("class", "my_new_class_name");
$( "p" ).addClass( "selected highlight" );
$("#my_id").attr("class", "my_new_class_name");