jquery-modal
jquery-modal copied to clipboard
Use Javascript to close only the active modal
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?
try this. $.modal.getCurrent().close();