add new class to attribute element by jquery code example Example: addclass jquery $( "p" ).addClass( "selected highlight" );