title: JQuery replace entire DIV using .load()
body: <p>I want to refresh a <code>&lt;div&gt;</code> on the close of a jQuery UI Modal Dialog.</p>
  
  <p>My code is:</p>
  
  <pre class="lang-js prettyprint-override"><code>var dialog = jQuery('#divPopup').dialog({
      autoOpen: false,
      height: 450,
      width: 650,
      modal: true,
      open: function(event, ui) {
          jQuery('body').css('overflow', 'hidden');
      },
      close: function(event, ui) {
          jQuery('#divPopup').dialog('destroy').remove();
          jQuery("#bodyId").load("http://www.xyz.com/ #bodyId");
      }
  });
  </code></pre>
  
  <p>But instead of replacing it, that adds the new <code>&lt;div&gt;</code> inside the old <code>&lt;div&gt;</code>:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div id="bodyId"&gt;
      &lt;div id="bodyId"&gt;
          New Response
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to replace old div <code>bodyId</code> with new div <code>bodyId</code>.</p>