I have this form in my HTML:
<form action="/awe/ChangeTheme/Change" method="post"> <select id="themes" name="themes"> ... <option value="blitzer">blitzer</option> </select> <input type="submit" value="change" /> </form>
Anybody knows how to submit it when a value is selected in the 'themes' dropdown?
The other solutions will submit all forms on the page, if there should be any. Better would be:
$(function() { $('#themes').change(function() { this.form.submit(); }); });
$('#themes').change(function(){ $('form').submit(); });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With