homepage Welcome to WebmasterWorld Guest from 54.227.41.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Various ways to enable/disable input using checkbox
LinuxGold




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

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

AND

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>
<th>&nbsp;</th>
</tr>
<!-- 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>


 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved