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