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