Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Various ways to enable/disable input using checkbox

8:02 pm on Mar 23, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 21, 2003
votes: 0

I would like to have "No Error" unchecked at load and have it unchecked if any "err_#" checkbox is checked.


All input type="text" disabled until the checkbox for each input is checked.

How do I get around to it?

<tr class="odd">
<th><input type="checkbox" name="none" checked="checked">No Error</input></th>
<!-- computer generated markups -->
<tr class="even"><td><input type="checkbox" name="err_1">Application signature</input></td><td><input type="text" name="cmt_" /></td></tr>
<tr class="odd"><td><input type="checkbox" name="err_2">Apt number</input></td><td><input type="text" name="cmt_"/></td></tr>
<tr class="even"><td><input type="checkbox" name="err_5">Aurhorized user middle initial</input></td><td><input type="text" name="cmt_"/></td></tr>
<tr class="odd"><td><input type="checkbox" name="err_3">Aurthorized user first name</input></td><td><input type="text" name="cmt_"/></td></tr>
<tr class="even"><td><input type="checkbox" name="err_4">Authorized user last name</input></td><td><input type="text" name="cmt_"/></td></tr>
<tr class="odd"><td><input type="checkbox" name="err_6">Birth Date</input></td><td><input type="text" name="cmt_"/></td></tr>
<tr class="even"><td><input type="checkbox" name="err_7">Branch I.D.</input></td><td><input type="text" name="cmt_"/></td></tr>
<tr class="odd"><td><input type="checkbox" name="err_8">Branch St.</input></td><td><input type="text" name="cmt_"/></td></tr>