This is easy for you, but I am dum. Can someone help me out?
I have a form that has a select field and a hidden field. I need the
hidden field to update based on the value of the select.
Like:
<form name="mydumform" onsubmit="makethiswork">
<select name="mydumselect">
<option>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
<option>E</option>
<option>F</option>
<option>G</option>
</select>
<input type="hidden" name="dumfield">
<input type="submit" etc.>
</form>
if select = A B C or D, hidden = 1
if select = E F or G, hidden = 2
else hidden = 0
I know how these if then statments work, but what I suck at is
understanding how to phrase it as a function and then stick that
function into the form.
Whoever helps me with this may well change the way I understand the
universe.
Thanks.