Jquery add class attr code example Example: addclass jquery $( "p" ).addClass( "selected highlight" );