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