title: Getting the GET URL through jQuery/Ajax
body: <p>I'm looking to reload part of a page when a form is submitted using <code>GET</code> method. The following JavaScript runs, though I am unsure of how to get the submitted URL from the form?</p>
  
  <p>I would have thought <code>var link = jQuery(this).attr('GET');</code> or somethign would return it, and have tried <code>URL</code> etc... no luck though. Any ideas?</p>
  
  <pre><code>jQuery('form').submit(function(e){
      e.preventDefault();
      var link = jQuery(this).attr('GET'); //Get the href attribute
      alert(link);
      history.pushState('data', '', link);
      jQuery('#search_main_section').fadeTo(300,0.3,function(){
          load(link + ' #search_main_section', function(){ jQuery("#loader").hide(); 
          jQuery('#search_main_section').fadeTo(100,1, function(){}); 
      });
  });
  </code></pre>