submit using js code example
Example 1: javascript submit form
document.getElementById("myForm").submit();
Example 2: how to submit a form in js
document.forms["myform"].submit();
document.getElementById("myForm").submit();
document.forms["myform"].submit();