pda4me
asked on
<option in <select statement needs to use onChange event to change action
I have the following form where the options will in some cases dictate a change in action. This is not working, how do I get this form to work? I cannot put the onChange on the select statement because I need it to change based on the <option selected.
<form style="margin:0px;" action="/lee-county/residential?frame=RESI" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td><div style="padding-bottom:4px;">City: <select name="search_city">
<option value="Alva">Alva</option>
<option value="Bonita Springs" onChange="this.form.action='?frame=RESI&base=frames-collier';" >Bonita Springs</option>
<option value="Another" onChange="this.form.action='?frame=LOTL&base=frames-sanibel';" >Another</option>
</select></div>
<input type="image" id="WADbSearch1" name="WADbSearch1" src="/images/search.png" value="Submit">
</form>
</td>
</tr>
</table>
</form>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER