Run jQuery ready block again after ajax loaded?
<p>I'm not sure if I'm asking the right question here, but basically I'm inserting html with an ajax request:</p>

<pre><code>// data-active_chart
if ($("#charts").attr("data-active_chart") == "barchart") {
  $.ajax({
    url: $("#charts").attr("data-path") + "/barchart",
    success: function(data) {
      $('#charts').html(data);
      console.log('Load was performed.');
    }
  });
}
</code></pre>

<p>And my HTML is something like:</p>

<pre><code>&lt;div id="charts" data-active_chart="barchart" data-path="http://example.com/something"&gt;

&lt;/div&gt;
</code></pre>

<p>But the point is I need jQuery to be aware of the updated DOM, like I need my tool tips and such to work in the HTML that's been inserted, along with a bunch of other things in the inserted HTML all need to respond to JS, how do I do this in a best practices way?</p>
