title: select with value in table and show onChange
body: <p>I have <code>select</code> input with <code>value</code> from database, i will show other <code>input</code> value when select <code>onChange</code>.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function showModel(id) {
      if (id === "") {
          $("input[name=color]").val("");
      } else if ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;select onchange='showModel(this.value)' name="model" class="form-control" required=""&gt;
    &lt;option value=""&gt;- SELECT -&lt;/option&gt;
    &lt;?php
      $qry = $db-&gt;query("SELECT name_model, color FROM product ");
      while ($fet = $qry-&gt;fetch_assoc()) {
          ?&gt;
    &lt;option value="&lt;?php echo $fet['name_model']; ?&gt;"&gt;&lt;?php echo $fet['name_model']; ?&gt;&lt;/option&gt;
    &lt;?php } ?&gt;
  &lt;/select&gt;
  &lt;input type="text" value="" name="color" readonly=""&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>when i change <code>select</code> its show <code>color</code> data from table</p>