jquery add class remove class onlick code example
Example 1: jquery add remove class clicked element
$(function() {
$('img').click(function() {
$(this).toggleClass('active');
});
});
Example 2: addclass removeclass jquery
$( "p" ).addClass( "myClass yourClass" );