how to append class in id jquery code example Example: addclass jquery $( "p" ).addClass( "selected highlight" );