Use setControlDisabled(true/false) method
input.setControlDisabled(true);
Back to control examples, all examples