title: Multiple Ajax HTTP GET Requests with Different Input Variables using jQuery
body: <p>I want to make asychronous get requests and to take different results based on the input that I provide to each one. Here is my code:</p>
  
  <pre><code>param=1;
  $.get('http://localhost/my_page_1.php', param, function(data) {
     alert("id = "+param);
     $('.resul   5.t').html(data);
  });
  
  param=2;
  $.get('http://localhost/my_page_2.php', param, function(data) {
     alert("id = "+param);
     $('.result').html(data);
  });
  </code></pre>
  
  <p>The result for both requests is:
              "id = 2"
  I want the results to be:
        "id = 1" for the 1st request, and
        "id = 2" for the second one..</p>
  
  <p>I want to do this for many requests in one
  HTML file and integrate the results into the
  HTML as soon as they are ready.</p>
  
  <p>Can anyone help me to solve this problem?</p>