title: Get selected value/text from Select on change
body: <pre><code>&lt;select onchange="test()" id="select_id"&gt;
      &lt;option value="0"&gt;-Select-&lt;/option&gt;
      &lt;option value="1"&gt;Communication&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I need to get the value of the selected option in javascript: does anyone know how to get the selected value or text, please tell how to write a function for it. I have assigned onchange() function to select so what do i do after that?</p>