Trobiorsmog
New Member
Is there any reason the following jquery wouldn't work when the user selects something from the drop down. (It is suppose to auto update)\[code\]<script>$(document).ready(function() { $("#state").change(function () { this.form.submit();})});</script> <form action="avsafety.asp" method="get"> <p>State:<br/> <select id="state" name="state"> <option label="ACT" value="http://stackoverflow.com/questions/14469316/ACT" <%if request.querystring("state") = "ACT" then response.write("selected") %>>ACT</option> <option label="NSW" value="http://stackoverflow.com/questions/14469316/NSW" <%if request.querystring("state") = "NSW" then response.write("selected") %>>NSW</option> <option label="QLD" value="http://stackoverflow.com/questions/14469316/QLD" <%if request.querystring("state") = "QLD" then response.write("selected") %>>QLD</option> <option label="VIC" value="http://stackoverflow.com/questions/14469316/VIC" <%if request.querystring("state") = "VIC" then response.write("selected") %>>VIC</option> <option label="SA" value="http://stackoverflow.com/questions/14469316/SA" <%if request.querystring("state") = "SA" then response.write("selected") %>>SA</option> <option label="TAS" value="http://stackoverflow.com/questions/14469316/TAS" <%if request.querystring("state") = "TAS" then response.write("selected") %>>TAS</option> <option label="WA" value="http://stackoverflow.com/questions/14469316/WA" <%if request.querystring("state") = "WA" then response.write("selected") %>>WA</option> </select> <input type="submit" value="http://stackoverflow.com/questions/14469316/Search" /> </p> </form>\[/code\]