Javascript to automatically submit/post a form


function myupdate(myform) {




From your html element, add:


Replace "formupdate" with the actual ID of your form you want to submit.

NOTE: you will get an error message "submit is not a recognized function" if you have a submit button with a name or id of "submit". Rename your submit button to be "mysubmit" or something like that.

UPDATE: another approach that works: