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
Add the same attribute as you have on the Close button:
data-dismiss="modal"
e.g.
Save
You can also use jQuery if you wish:
$('#frmStudent').submit(function() { // submission stuff $('#StudentModal').modal('hide'); return false; });