Stagetenor
08-16-2006, 04:17 PM
Hi -
I am trying to create an online registration form, and I am having the following problem.
I have it so that when a checkbox is check, a text box reads "0" (the initial value of the box is "20"). When the checkbox is unchecked, I need the value to return to "20" - right now it is not doing that.
Here is the code...
<input name="RCMExaminerChk" type="checkbox" id="checkbox" onclick="if (this.checked) form.textbox.value="0"" value="true" />
What do I add to this to get the "uncheck" to work?
Thanks!
I am trying to create an online registration form, and I am having the following problem.
I have it so that when a checkbox is check, a text box reads "0" (the initial value of the box is "20"). When the checkbox is unchecked, I need the value to return to "20" - right now it is not doing that.
Here is the code...
<input name="RCMExaminerChk" type="checkbox" id="checkbox" onclick="if (this.checked) form.textbox.value="0"" value="true" />
What do I add to this to get the "uncheck" to work?
Thanks!