jquery hasclass removeclass addclass code example Example: addclass removeclass jquery $( "p" ).addClass( "myClass yourClass" );