title: How to pass value from javascript to php file
body: <p>I am getting value via <code>JQuery</code> as something like this</p>
  
  <pre><code>var query= popURL.split('?');  
  var dim= query[1].split('&amp;'); 
  var popWidth = dim[0].split('=')[1]; //Gets the first query string value 
  var id = dim[1].split('=')[1];
  </code></pre>
  
  <p>Now i want to send or get this <code>"id"</code> value into same <code>php</code> file. I think we can only get value on other <code>php</code> page using <code>get</code> method. I want to get value on same <code>php</code> file.</p>
  
  <p>I think we can do with this using <code>AJAX</code> right?</p>
  
  <p>If yes please give me some links or code how to get? I am newbie to <code>ajax</code>.</p>