how to add and remove the class using jquery code example Example: addclass removeclass jquery $( "p" ).addClass( "myClass yourClass" );