title: What is the equivalent of this Ajax code, in jQuery?
body: <p>None of the jQuery methods, from the jQuery page could work in the same way, as this simply does.</p>
  
  <pre><code>function enableAjaxTask(removeLink){
  
      var xmlhttp = false;
  
  
      if(window.XMLHttpRequest){
          xmlhttp = new XMLHttpRequest();
      }else{
          xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
      }
  
      xmlhttp.onreadystatechange = function(){
          if(xmlhttp.readyState === 4 &amp;&amp; xmlhttp.status === 200){
              document.getElementById('foo').innerHTML = xmlhttp.responseText;
          }
      }
  
  
      xmlhttp.open('GET', 'foo.php?id=22', true);
      xmlhttp.send(null);
  
  }
  </code></pre>