How to close jquery modal dialog when click outside?

If jquery ui dialog is a modal, then this code is working fine. If the dialog is not a modal you will find out another method.

.ui-widget-overlay is dialog overlay class. So attach an event handler function for this element.

<script type="text/javascript">
        $('body').on("click", ".ui-widget-overlay", function()

No comments:

Post a Comment