closing

Triggered before the dialog is closed.

Parameters

NameTypeDescription
e {object} event data

Examples

sample

    
 <div id="dialog" style="display: none">Lorem ipsum dolor sit amet, consectetur adipiscing elit...</div>
 <button onclick="dialog.open()">Open Dialog</button>
 <script>
     var dialog = $("#dialog").dialog({
         autoOpen: false,
         closing: function (e) {
             alert('The closing event is fired.');
         },
         closed: function (e) {
             alert('The closed event is fired.');
         }
     });
 </script>