title: Ajax Automatic Div Update w/out page refresh won't work
body: <p>I am struggling to figure out why this is not working, but I would like it so that the information from <em>load.php</em> is placed in the div <em>sample</em> but if that code is updated (say if i was pulling information from a database), only the information included in <em>load.php</em> would refresh - not the entire page.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;            &lt;/script&gt;
   &lt;script&gt;
    $(document).ready(function(){
      var callAjax = function(){
        $.ajax({
          method:'get',
          url:'load.php',
          success:function(data){
            $("#sample").html(data);
          }
        });
      }
      setInterval(callAjax,5000);
    });
   &lt;/script&gt;
   &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
   &lt;/head&gt;
   &lt;body&gt;
  
    &lt;div id='sample'&gt;100 &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>