html how to set the class of a div using jquery code example Example: addclass jquery $( "p" ).addClass( "myClass yourClass" );