title: on dropdown Change event load data from database and fill text box
body: <p>I have a simple dropdown list, whose values are from the DB.I am doing it as</p>
  
  <pre><code>$query = "SELECT id,location_name FROM misc_location";
  if ( $result = mysql_query($query) ) {
      $selectLoco = "&lt;select name='selectLoco' id='selectLoco'&gt;";
       while ($row = mysql_fetch_row($result) ) {
          $selectLoco .= "&lt;option value='$row[0]''&gt; $row[1] &lt;/option&gt;";
       }
       $selectLoco .= "&lt;/select&gt;";
  } 
  </code></pre>
  
  <p>But now i have a text box below the dropdown. So when user selects a dropdown item ,I need to pull a value corresponding the item selected and display in the text box.</p>
  
  <p>Table : misc_location</p>
  
  <pre><code>id   location_name   time
  1    Ben             7.00 am
  2    Cat             8.00
  </code></pre>
  
  <p>Location : Drop-down user selects Ben , Text box below should display 7.00 </p>