jquery add a class in button code example Example: addclass jquery $( "p" ).addClass( "selected highlight" );