title: Jquery Add Values to Select
body: <p>I want to add Options to Select Box using jquery, but my options comes from a MYSQL database table.</p>
  
  <p>Here is method what I want:</p>
  
  <pre><code>function add_inst(va) {
    alert(va);
  }
  
  
  &lt;select id="test"&gt;
  
  &lt;/select&gt;
  </code></pre>
  
  <p>I want to select values from MySQL table with match value of va, then add these result as options to select id="test".</p>
  
  <p>For example, if I pass '12' to function add_inst like add_inst('12'), my SQL statement will be:</p>
  
  <pre><code>SELECT * 
    FROM tbl1 
   WHERE col1='12'
  </code></pre>
  
  <p>After all the values return from mysql will be added to select id="test" as options.</p>