C
crjunk
I want to set a textbox's ReadOnly value to the OPPOSITE value that the
CheckBox has. For example: If the user checks the CheckBox then the
ReadOnly property for the TextBox is set to False. The default value of
the TextBox is set to false. Am I on the right path or am I totally
off in left field?
<input type="checkbox" name="chkCode1" value="ON"
onclick="document.DisplayCodes.txtGrossPayroll1.readOnly !=
document.DisplayCodes.chkCode1">
<br>
<input type="text" style="text-align: right;" size="10" tabindex='1'
readonly="true" name="txtGrossPayroll1" value="0" width="10"
onkeyup="ComputePremium(1)" onkeypress="return blockNumbers(event)"/>
Thanks,
CR Junk
CheckBox has. For example: If the user checks the CheckBox then the
ReadOnly property for the TextBox is set to False. The default value of
the TextBox is set to false. Am I on the right path or am I totally
off in left field?
<input type="checkbox" name="chkCode1" value="ON"
onclick="document.DisplayCodes.txtGrossPayroll1.readOnly !=
document.DisplayCodes.chkCode1">
<br>
<input type="text" style="text-align: right;" size="10" tabindex='1'
readonly="true" name="txtGrossPayroll1" value="0" width="10"
onkeyup="ComputePremium(1)" onkeypress="return blockNumbers(event)"/>
Thanks,
CR Junk