how to add a class name with jquery code example Example: addclass jquery $( "p" ).addClass( "selected highlight" );