add class in html tag in page using jqu code example Example: add class jquery $("#my_id").attr("class", "my_new_class_name");