how to add class using jquery in a particular element of html code example Example: addclass jquery $( "p" ).addClass( "selected highlight" );