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
i make this code it work fine but once form submit model button not open model again say e.preventdefault is not a function..
Use below code on any event that fire on submit form
$('.modal').removeClass('in');
$('.modal').attr("aria-hidden","true");
$('.modal').css("display", "none");
$('.modal-backdrop').remove();
$('body').removeClass('modal-open');
you can make this code more short..
if any body found solution for e.preventdefault let us know