title: AJAX to only fetch html of specific class
body: <p>I'm trying to use AJAX for polling an sql query. I'm sure theres better ways to accomplish what i'm trying to do so if you have alternatives i'm all ears, however right now my query is stored in </p>
  
  <p>this is what i'm using</p>
  
  <pre><code>$(function() {
  setInterval(function() {
      $.ajax({
          type: "GET",
  
          url: location.href,
          success: function(html) {
              $(".list").html(html);
         }
  
      });
  }, 5000);
  });
  </code></pre>
  
  <p>This just updates the table with the entirety of the html, and i've tried many things ive found on here and google to modify my code to only update with .list, and i cannot get it to work.</p>
  
  <p>Thanks for any input</p>