title: How to Get data from Combo Box and Input it to Text Box with Javascript?
body: <p>I have this code, it is quite simple but why isn't it working?</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;script type=”text/javascript“&gt;
              function Expedisi() 
              {
                  var x=document.getElementById("cmb");//this the script for get data combo box
                  var y = document.getElementById("txt");
                  getCmb = x.value; 
                  y.value = getCmb;
                  alert(x);
              }
      &lt;/head&gt;  
      &lt;body&gt;
          &lt;select name="JENIS" id="cmb" data-role="slider" onChange="Expedisi()"&gt;
              &lt;option value="Suplier"&gt;Sup&lt;/option&gt;
              &lt;option value="Expedisi"&gt;Exp&lt;/option&gt;//if i pick one of this                          the value will be input on text box
          &lt;/select&gt; 
  
          &lt;input type="text" name="BKIRIM" id="txt" value=""&gt; //this the destination value
      &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <p>Can anyone Helpme? because this script is not run? </p>
  
  <p>Thanks</p>