title: Retrieve and print data from mysql DB using ajax
body: <p>I have the following text fields - </p>
  
  <pre><code>&lt;input type="text" name="id" id="id" tabindex="1"&gt;
  &lt;input type="text" name="name" id="name" tabindex="1"/&gt;
  </code></pre>
  
  <p>and the screenshot of mysql database is -</p>
  
  <pre><code>id          name
  123         John
  124         Rahi
  </code></pre>
  
  <p>When I insert the track id in the first text field then the corresponding student name should be shown in the second field. How can it be done using ajax ? </p>