I have a Bootstrap modal dialog which contains a form. The modal dialog contains a submit and a cancel button. Now on submit button click the form is submitted
submit
give id to submit button
Save $('#btnSave').click(function() { $('#StudentModal').modal('hide'); });
Also you forgot to close last div.
Hope this helps.