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