title: How can I get a URL parameter with jQuery?
body: <p>I am sending an AJAX request and want to send the data of the URL variable with it. I have tried using PHP's <code>GET</code>, however it is not sent.</p>
  
  <pre><code>$.ajax({
    type: "POST",
    url: "send.php",
    data: "name=" + "&lt;?php $_GET['name']; ?&gt;", 
    success: function(data) {
      $("#div").html(data);
    }
  })
  </code></pre>