addclass jquery on click code example
Example 1: jquery on click add class
$(document).ready(function(){
$("button").click(function(){
$(".p").addClass("intro");
});
});
Example 2: addclass jquery
$( "p" ).addClass( "selected highlight" );
Example 3: addclass jquery
$( "p" ).addClass( "myClass yourClass" );