SyntaxFix
Write A Post
Hire A Developer
Questions
document.getElementById("theForm").submit();
It works perfect in my case.
you can use it in function also like,
function submitForm() { document.getElementById("theForm").submit(); }
Set "theForm" as your form ID. It's done.