jquery-modal icon indicating copy to clipboard operation
jquery-modal copied to clipboard

Use Javascript to close only the active modal

Open stephenllai opened this issue 6 years ago • 1 comments

When multiple modals are stacked, $.modal.close(); makes all modals closed. Only rel="modal:close" can be used for closing the active model.

If I really want to use Javascript for closing only the active modal, any idea?

stephenllai avatar Mar 22 '19 08:03 stephenllai

try this. $.modal.getCurrent().close();

limiu82214 avatar Apr 22 '19 05:04 limiu82214