Submit Form on Change of Select Box Option

If you are working on an HTML form and if it needs to send request to the server on the change of select box option. You can do it using a simple javascript.



<form action="/someURL">
<select onchange="this.form.submit()">
    ...
</select>
</form>

Here onChange event will be invoked whenever user changes the value in the select box and this.form.submit() method will submit the form.

tgugnani: Web Stuff Enthusiast.