jquery add css class on click code example Example: addclass jquery $( "p" ).addClass( "selected highlight" );