I have looked at a few questions on here and followed them but am still not having any success. I want the form to submit when the select is changed. I have this:
HTML:
<form id="form1_currency" action="/" method="post">
<select id="form1_currency" name="currency" class="autosubmit"><option value="47">GBP</option><option value="142">USD</option><option value="44">EUR</option></select>
<input id="form1_submit" name="submit" value="OK!" type="submit" /><input type="hidden" name="cms-form" value="Y3VycmVuY3k6cGVyY2hfc2hvcDovdGVtcGxhdGVzL3Nob3AvY3VycmVuY2llcy9jdXJyZW5jeV9mb3JtLmh0bWw6MTQ2MDk3NDgwNg==" />
</form>
JQUERY:
$('.autosubmit').on('change', function(){
console.log('Option Changed');
$(this).parent('form').submit();
});
But the form is not submitting. Pen is here:
http://codepen.io/mikehdesign/pen/ZWomjv
Help greatly appreciated!