I've gotten a little closer, but no completely. Instead of using the
ReadOnly property I tried the Disabled property. When I put a check in
the checkbox, the disabled property is set to false, but if I uncheck
the checkbox, the textbox is not disabled. Can someone tell me what
I'm missing?
<input type="checkbox" name="chkCode1" value="ON"
onclick="document.DisplayCodes.txtGrossPayroll1.di sabled=
!document.DisplayCodes.chkCode1" />
<br>
<input type='text' style='text-align: right;' size='10' tabindex='1'
disabled='true' name='txtGrossPayroll1' value='0' width='10'
onkeyup='ComputePremium(1)' onkeypress='return blockNumbers(event)'/>
Thanks,
CR Junk
|