I have a form with a select and a few text inputs. I\'d like the form to be submitted when the select is changed. This works fine using the following:
onchan
Use :
function myFunction() { document.querySelectorAll("input[type=submit]")[0].click(); }