geraldw
asked on
Using onChange to submit form
Hello,
I know this should be easy but I'm missing something.
I have a form like this:
<SELECT NAME="team" onChange="submit">
<OPTION value="Rams">Rams
<OPTION value="Bears">Bears
<OPTION value="RumRasin">Colts
<OPTION value="Packers" selected>Packers
</SELECT>
This select is actually one of 5 on the page and each select MUST go to the DB to retrieve some data. So the first SELECT builds the menu for the second SELECT. Right now I have OK buttons to SUBMIT but I want to change the page so that the form is automatically submitted to the action page when a user makes a selection.
This actually may be all it takes as far as the tag is concerned but what I'm missing is a javascript to go along with the onChange="submit" that I put into the SELECT.
Thanks, Jerry
I know this should be easy but I'm missing something.
I have a form like this:
<SELECT NAME="team" onChange="submit">
<OPTION value="Rams">Rams
<OPTION value="Bears">Bears
<OPTION value="RumRasin">Colts
<OPTION value="Packers" selected>Packers
</SELECT>
This select is actually one of 5 on the page and each select MUST go to the DB to retrieve some data. So the first SELECT builds the menu for the second SELECT. Right now I have OK buttons to SUBMIT but I want to change the page so that the form is automatically submitted to the action page when a user makes a selection.
This actually may be all it takes as far as the tag is concerned but what I'm missing is a javascript to go along with the onChange="submit" that I put into the SELECT.
Thanks, Jerry
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.