SyntaxFix
Write A Post
Hire A Developer
Questions
Use this to submit and close the modal at the same time
$('#form-submit').on('click', function(e){ e.preventDefault(); $('#con-close-modal').modal('toggle'); //or $('#IDModal').modal('hide'); $('#date-form').submit(); });