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