jquery set class name of element code example
Example 1: jquery addclass
$("#elem").addClass("classname");
Example 2: add class jquery
$("#my_id").attr("class", "my_new_class_name");
$("#elem").addClass("classname");
$("#my_id").attr("class", "my_new_class_name");