javascript selected value
<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: can any one know how to get the selected value or text , plz tell how to write a function for it  i have assign onchange() function to select so after that?</p>
