Dialog Box is not close after i update the button in dialogbox
<p>i am trying to close the dialog box automatically after i update the button in dialogbox, but it will not close automatically, is there any proper solution to resolve this issue? this is my code.</p>

<pre><code>&lt;script&gt;
jQuery(function () {
    var jQuerydialog = jQuery("#view_dialog").dialog({
        autoOpen: false,
        title: 'Schedule',
        height: 200,
        width: 350,
        resizable: true,
        modal: true,
    });
    jQuery(".view_dialog").click(function () {
        jQuerydialog.load(jQuery(this).attr('href'),

        function () {
            jQuerydialog.dialog('open');
        });
        return false;
    });
});
&lt;/script&gt;
</code></pre>
