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