.submit() js code example
Example 1: form submit programmatically
if (typeof document.getElementById('ss-form').submit === "object") {
document.getElementById('ss-form').submit.remove();
}
document.getElementById('ss-form').submit();
Example 2: javascript submit a form
document.getElementById("myFormID").submit();
Example 3: how to submit a form in js
document.forms["myform"].submit();