how to set class jquery code example Example: addclass jquery $( "p" ).addClass( "myClass yourClass" );