Hello
How do you post a form in mvc when changing the value of a droplist? do I have to add attributes or is there some inbuilt thing?
Thanks
/M
Hello
How do you post a form in mvc when changing the value of a droplist? do I have to add attributes or is there some inbuilt thing?
Thanks
/M
Can't you do something like this, nice and clean:
<script>
document.getElementById('mySelect').onchange = function() {
document.forms[0].submit();
};
</script>
<form method="post">
<select id="mySelect">
<option>foo</option>
<option>bar</option>
</select>
</form>