javascript - Close modal without commit listner -
I need to recognize that a bootstrap model was hidden, but when the form contained in it was not submitted I tried to use it:
$ ('# ModalID'). ('Hidden.bs.modal', function () {}); But it is removed even when committed. I want to be canceled when it is canceled, or out of the modal, or even in the close button. What is the way to recognize it?
Try it, if the modal is open, the alert dialog will display correctly.
Warning ($ ('# ModalID'). Haclus ('in'));
Comments
Post a Comment