title: php get value of document.getelementbyid
body: <pre><code>    &lt;select style="width: 300px" id='Jproduk' name='selectJP' onchange="cekInput()"&gt;
          &lt;option  value="" selected&gt;&lt;/option&gt;
          &lt;option  value="1"&gt;game&lt;/option&gt;
          &lt;option  value="2"&gt;itunes&lt;/option&gt;
          &lt;option  value="3"&gt;google&lt;/option&gt;   &lt;/select&gt;   
  &lt;script type="text/javascript"&gt;   
  &lt;?php $jprod= document.getElementById('Jproduk').value;?&gt;   
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I get the value of selected option and parsing it into <code>$jprod</code>?</p>