I can manipulate a control based on the state of another control, as shown in this jsfiddle, where the state of a Checkbox alters the width and background color of a Textbox
If you don't mind. Take my method : maxlength
maxlength