(programmer-NOT!)
I am trying to get my staff through checkboxes quickly using tab key.
If the user does not press space bar on 'send out worker' when they press tab ..they skip to placement box. again...if no change 'default of 'no'' in placement box, they skip to transport.etc
Conversely, if any of the checkboxes are checked, (true) they tab through the groups of radio buttons. (or in the case of transport-tab through text fields)
I am sure this is easy but the syntax for a solution escapes me...I stripped out my mangled attempts at javascripting
I have tried several approaches --thanks in advance to anyone taking this on.
on the form...there are 12+ checkboxes and radio box subcategories...here are a few
<body>
Send out Wkr?:
<input TYPE="checkbox" name="cgo" value="yes">Yes<br>
(check all that apply)
<input TYPE="radio" name="whygo" value="sit">sit
<input TYPE="radio" name="whygo" value="transport">transport
<input TYPE="checkbox" name="whygo" value="investigate">investigate
<input TYPE="checkbox" name="whygo" value="other">other reason
Placement?<br>Did you place youth?<br>
<input TYPE="checkbox" name="placement" value="Y">
Foster care/home
<input TYPE="radio" name="placement" value="C">Caretaker/Parent
<input TYPE="radio" name="placement" value="F">Foster Home
<input TYPE="radio" name="placement" value="D">Foster home out-of-district
<input TYPE="radio" name="placement" value="P">Home licensed
<input TYPE="radio" name="placement" value="O">Other
Youth tranported?
<input TYPE="checkbox" name="transp" value="Y">Yes
Non-secure:<br><input TYPE="Text" NAME="f_town" SIZE="20" VALUE="From"><input TYPE="Text" NAME="s_town" SIZE="20" VALUE="To"><input TYPE="Text" NAME="by_who" SIZE="20" VALUE="By">
Secure:<br><input TYPE="Text" NAME="fs_todwn" SIZE="20" VALUE="From"><input TYPE="Text" NAME="ss_town" SIZE="20" VALUE="To"><input TYPE="Text" NAME="sby_who" SIZE="20" VALUE="By">
</td>
</body>
</html>
I am trying to get my staff through checkboxes quickly using tab key.
If the user does not press space bar on 'send out worker' when they press tab ..they skip to placement box. again...if no change 'default of 'no'' in placement box, they skip to transport.etc
Conversely, if any of the checkboxes are checked, (true) they tab through the groups of radio buttons. (or in the case of transport-tab through text fields)
I am sure this is easy but the syntax for a solution escapes me...I stripped out my mangled attempts at javascripting
I have tried several approaches --thanks in advance to anyone taking this on.
on the form...there are 12+ checkboxes and radio box subcategories...here are a few
<body>
Send out Wkr?:
<input TYPE="checkbox" name="cgo" value="yes">Yes<br>
(check all that apply)
<input TYPE="radio" name="whygo" value="sit">sit
<input TYPE="radio" name="whygo" value="transport">transport
<input TYPE="checkbox" name="whygo" value="investigate">investigate
<input TYPE="checkbox" name="whygo" value="other">other reason
Placement?<br>Did you place youth?<br>
<input TYPE="checkbox" name="placement" value="Y">
Foster care/home
<input TYPE="radio" name="placement" value="C">Caretaker/Parent
<input TYPE="radio" name="placement" value="F">Foster Home
<input TYPE="radio" name="placement" value="D">Foster home out-of-district
<input TYPE="radio" name="placement" value="P">Home licensed
<input TYPE="radio" name="placement" value="O">Other
Youth tranported?
<input TYPE="checkbox" name="transp" value="Y">Yes
Non-secure:<br><input TYPE="Text" NAME="f_town" SIZE="20" VALUE="From"><input TYPE="Text" NAME="s_town" SIZE="20" VALUE="To"><input TYPE="Text" NAME="by_who" SIZE="20" VALUE="By">
Secure:<br><input TYPE="Text" NAME="fs_todwn" SIZE="20" VALUE="From"><input TYPE="Text" NAME="ss_town" SIZE="20" VALUE="To"><input TYPE="Text" NAME="sby_who" SIZE="20" VALUE="By">
</td>
</body>
</html>