title: Issue with jqGrid and jquery click event
body: <p>I'm loading a jqGrid on my page. The grid has a Delete button for each row. I'm trying to use the jquery UI dialog confirmation on my Delete button.</p>
  
  <p>Here's my javascript code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      $(document).ready(function () {
  
          $("#list").jqGrid({
              url: '/MyController/MyFunction/',
              datatype: 'json',
              mtype: 'POST',
              colNames: ['', 'Name', ''],
              colModel: [
                  { name: 'Edit', index: 'Edit', width: 40, align: 'left', sortable: false },
                  { name: 'Name', index: 'Name', width: 120, align: 'left' },
                  { name: 'Delete', index: 'Delete', width: 50, align: 'left', sortable: false }],
              pager: $('#pager'),
              rowNum: 10,
              rowList: [10, 20, 50],
              sortname: 'Name',
              sortorder: "asc",
              viewrecords: true,
              width: 700
          });
  
  
          $("#dialog-confirm").dialog({
              autoOpen: false,
              modal: true,
              buttons: {
                  "Delete": function () {
                      window.location.href = $(this).attr("href"); ;
                  },
                  Cancel: function () {
                      $(this).dialog("close");
                  }
              }
          });
  
  
          $("a.confirm").click(function () {
              alert("HELLO");
              //$("#dialog-confirm").dialog("open");
          });
  
      }); 
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I'm passing in data from my controller to the grid. I have the class "confirm" added to the Delete link for each row.</p>
  
  <p>If I click on my Delete button, nothing happens. The link has the correct class, and all my javascript is loading correctly. I placed an alert at the end of my document.ready function to make sure there were no errors.</p>
  
  <p>But if I comment out my jqGrid and add a link onto my page with the class "confirm", the click event will fire.</p>
  
  <p>Has anyone ever run into this?</p>