jquery - Bootstrap modal won't close -
that's put far: http://jsfiddle.net/1geq21c9/
if remove return false;
in line 5 , try add new user error jsfiddle. opening same thing browser can briefly see new table row, modal closes , row gone again.
with return false;
statement works fine except modal won't close anymore (programmatically). still can closed hand.
i tried few approaches of closing modal didn't improve anything.
another issue encountered never got of modal events. tried piece of code , nothing happened:
$("#addusermodal").on("hidden.bs.modal", function () { ... });
any kind of or hints appreciated, modal not closing/row disappearing thing since managed work around missing modal events already.
i can't tell why code won't work... if you're okay this,
$('.modal').modal('hide');
instead of
$('#addusermodal').modal('hide');
will trick.
edit
you have spelling issue.
addusermodal instead of addusermod**e**l
Comments
Post a Comment