SyntaxFix
Write A Post
Hire A Developer
Questions
Try to trigger() event in your function:
$("form").trigger('submit'); // and then... do submit()