title: Auto refresh multiple divs with Jquery
body: <p>Im creating a dashboard for a large display at work, I have managed to get one div auto refreshing a php request page, but I can't think of a way of using this function on another div for another script without copying the entire function and renaming it, which just seems dumb.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>&lt;script type="text/JavaScript"&gt; 
  $(document).ready(
  function update() 
  {
      $.get("response.php", function(data){
              $("#ajaxtest").html(data);
              window.setTimeout(update, 10000);
          });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I did so some searching on stackoverflow and found this nifty little extract, although its for single div use only... (<a href="https://stackoverflow.com/questions/220767/auto-refreshing-div-with-jquery">second example: auto refreshing div with jquery</a>)</p>