[Javascript] Set all list box drop downs to a single value

David Yee david at amsresponse.com
Fri Jul 18 14:17:38 CDT 2003


Hi- how can I set all the drop downs on my form to a single value with the
click of a button?  I've seen ways to do it with checkboxes but I'm not sure
how to do it with drop downs.  The names of the select box variables are in
a number sequence e.g.

<select name=10001[status]>
<option value=N>NOT_STARTED
<option value=I>IN-PROGRESS
<option value=C>COMPLETE
</select>

<select name=10002[status]>
<option value=N>NOT_STARTED
<option value=I>IN-PROGRESS
<option value=C>COMPLETE
</select>

<select name=10003[status]>
<option value=N>NOT_STARTED
<option value=I>IN-PROGRESS
<option value=C>COMPLETE
</select>

Thanks for any help!

David


More information about the Javascript mailing list