Menu
Hi,
I have a few lines of code where I would like the users to toggle the value between “disabled” and “1” when they select/deselect the checkbox, at the same time enable/disable the value fields.
The enabling/disabling works fine, but the value did not toggle. Any kind soul can help me with the codes below?
Thanks a million.
Regards,
Jack
<input type=checkbox name=Type value=”100″ onclick=”this.form.ForeCast.disabled = this.checked ? false : true”;
if(this.form.ForeCast.disabled=1){this.form.ForeCast.value=’1′} else {this.form.ForeCast.value=’Disabled’}”>
<input name=”ForeCast” type=”text” size=”5″>