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
Try this code
$('#frmStudent').on('submit', function() { $(#StudentModal).on('hide.bs.modal', function (e) { e.preventDefault(); }) });