jQuery addClass() Method – on click Add class

Description: Add or more classes from each element in the set of matched elements, depending on either the class’s presence or the value of the state argument.

$(“.click_to_add”).click(function(){
$(“.add_class_element”).addClass(“class_add”);
});

Leave a Comment

Your email address will not be published.