title: jquery dialog opens and all things work but not second time
body: <p>my site is in mvc-4, i am opening partial view in dialog. partial view works fine first time, but when i open it second time and so on it opens he dialog but partial view is not working. I think some jquery issue i am doing wrong. In partial view div hover event is not working.</p>
  
  <p>This is my code to open dialog:</p>
  
  <pre><code>&lt;div onclick="ShowHistory();"&gt;Actions History&lt;/div&gt;
  function ShowHistory()
  {
      myDialog = $("&lt;div&gt; &lt;/div&gt;");
      myDialog.dialog({
          autoOpen: false,
          width: 1050,
          title: "Title",
          resizable: false,
          modal: true,
          draggable: false,
      });
  
      myDialog.load("@Url.Action("Method_return_partial_view", new {id = 1 })",
  function () {
          myDialog.dialog('open');
      });
  
  }
  </code></pre>
  
  <p>Controller method:</p>
  
  <pre><code>[Authorize]
      public PartialViewResult Method_return_partial_view(int id)
      {
          var list = GetHistory(id);
          return PartialView("_partialViewName", list);
      }
  </code></pre>
  
  <p>Edit:</p>
  
  <p>I am also sorting the grid, and grid sorting is done using jquery ajax, it works fine when open first time and controller method for sorting called once, but when i open dialog second time and i click on sorting header then controller methods called with multiple of two, means if click once then call once, if click 2nd time then controller method calls 2 times, if 3rd then calls 4 times.</p>