title: Append Javascript variable to Jquery AJAX URL
body: <p>I want to append textboxValue to the URL - test.php</p>
  
  <p>The URL should be test.php?variable="textboxValue"</p>
  
  <pre><code>var textboxValue = document.getElementById("textbox").value;
  
  window.onload = function() {
  
  window.addEventListener('shake', shakeEventDidOccur, false);
  
  //define a custom method to fire when shake occurs.
  function shakeEventDidOccur () {
      $.ajax({url:"test.php?value=var textboxValue"});
  
  }
  </code></pre>
  
  <p>How do I do this?</p>