title: Running JQuery scripts on AJAX loaded content
body: <p>I am using .load() to pull static HTML files onto my main HTML page. The scripts and selectors that I have written exist within:</p>
  
  <pre><code>$(document).ready(function(){});
  </code></pre>
  
  <p>But they don't work on the AJAX loaded content. I have read that this is because the selectors that I am using are not available.</p>
  
  <p>Is there a better way to do this? Adding the script to the window.load function doesn't work either:</p>
  
  <pre><code>$(window).load(function() {});
  </code></pre>