title: Event listener if div is reloaded
body: <p>In some AJAX query, in response.done I refresh some div and it works fine, the problem is this refresh doesn't refresh also another function(this function fill the content <code>html()</code> of another div inside the refreshed one). I'm thinking for a trick to add an <strong>event</strong> to listen when that div is reloaded, I lunch my <code>getAmount()</code> function.</p>
  
  <p>I tried to add that function after reloading part in AJAX but it doesn't work.</p>
  
  <p><strong>file1.phtml</strong></p>
  
  <pre><code>ajaxRequest = jQuery.ajax({
  ...
  ajaxRequest.done(function (response, textStatus, jqXHR) {
      jQuery("#shopping-cart-table").load(location.href + " #shopping-cart-table"); //Here I reload my div.
  });
  </code></pre>
  
  <p>&nbsp;
  <strong>file2.phtml</strong></p>
  
  <pre><code>function getAmount() {
      var some = jQuery(this).attr('data-subtotal');
      jQuery('#shopping-cart-table .data').each(function(){
          jQuery('.ship-cart-vendor-header').each(function(){
              jQuery(this).find('.not-reached').html(some);
          });
      });
  }
  </code></pre>