$ ( "className.") the Click (function () {. $ ( '# MyModel') Modal ( 'Show');. Alert ( 'modal box open'); }); $ ( '# MyModel') .on ( 'hide.bs.modal', function () { Alert ( 'modal box closed "); });
Applicable scene: a pop-up box pop-up box when multiple use dynamic assignment will be displayed before the assignment of the data before re-modify the value, you can clear the specific ID value to be assigned at the time to close the window after the acquisition closed event