How to open a Jquery Dialog popup when checkbox is clicked and restore button is clicked
<p>My code is somewhat like this:</p>

<pre><code>  function ShowPopUpRestore() {
        var returnval = 1;
        var hddnField = document.getElementById(&lt;%=hdnSelectedRows.ClientID%&gt;");
        if (hddnField.value != 0) {
            returnVal = 0;
           $('&lt;div&gt;&lt;/div&gt;').appendTo('body')
                                .html('&lt;div&gt;&lt;align="left"&gt; &lt;/br&gt;' + '&lt;%= this.GetMessage("Msg1595")%&gt;' + '&lt;/h6&gt;&lt;/div&gt;')
                                .dialog({
                                    resizable: false,
                                    modal: true,
                                    title: "",
                                    height: 150,
                                    width: 475,
                                    buttons: {
                                        Yes: function () {
                                           // //__doPostBack(mDdlSurgeryListRE.name, '');

                                            $(this).dialog("close");
                                        },
                                        "No": function () {                                         

                                            $(this).dialog('close');
                                        }
                                    },
                                    close: function (event, ui) {
                                        $(this).remove();
                                    }
                                }).prev(".ui-dialog-titlebar").css("background", "#4E2D1D");
                            }                            
                    return false;
    }
</code></pre>

<p>Suppose one of my data is in suspended mode and I want it to be in active mode, so I am trying to restore it via clicking on the restore button.
When I am clicking on the checkbox and trying to click on the restore button, a pop-up should come having a 'yes'/'no' button:</p>

<ul>
<li>If I click 'yes', then the data which is checked will be restored back to active mode. </li>
<li>If I click 'no', then it should remain in suspended mode. </li>
</ul>

<p>It can be valid for multiple check-boxes(data). Thank you.</p>