title: jQuery modal dialog and jqGrid
body: <p>How can I use the Jquery modal confirmation with jqGrid? Say when I will submit my entries it will pop up a modal dialog and display the names with the message for sending to server..</p>
  
  <p>My approach</p>
  
  <pre><code>$("#dialog-confirm").dialog({
              autoOpen:false,
              resizable:false,
              height:180,
              modal:true,
              buttons:{
                   'Confirm': function(){
                              var ids =jQuery("#list10").jqGrid('getGridParam','selarrrow');
                                  $.ajax({
                                    type: "POST",
                                    url: "url&amp;names="+ids,
                                    data: JSON.stringify(ids), 
                                    dataType: "json"
                              });
                                  },
                              'cancel': function(){
                                      $(this).dialog('close');
                                      }
          }
          });
          });
  </code></pre>
  
  <p>my html :</p>
  
  <pre><code>&lt;div id="dialog-confirm" title="Confirm"&gt;
          &lt;p&gt;&lt;span class="ui-icon-alert" style="float:left; margin:0 7px 20px 0;"&gt;&lt;/span&gt;Are you sure want to cancel(or send this names)#names?&lt;/p&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>In that dialog box I need to send those names as well... but this approach will not give me the names from my grid which I selected to send it to server.</p>