How to get the value of a selected option of a pull down menu using jquery?
<pre><code>  &lt;select id="testSelection"&gt;
           &lt;option&gt; test1 &lt;/option&gt; 
           &lt;option&gt; test2 &lt;/option&gt; 
           &lt;option&gt; test3 &lt;/option&gt; 
           &lt;option&gt; test4 &lt;/option&gt; &lt;--- selected this one from the pull down menu 
           &lt;option&gt; test5 &lt;/option&gt; 
           &lt;option&gt; test6 &lt;/option&gt; 
  &lt;/select&gt;

             $("#testSelection").change(function()
             {
                    alert($(this).text());
             });
</code></pre>

<p>Strange to me, the alert message shows all the selections but I was expecting it to show on only test4 text. </p>
