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