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();
});
});