Use setStyle(name, value) to assign style attributes to the input control.
obj.setStyle("background", "yellow");
obj.setStyle("border", "1px solid red");
Back to input examples, all examples