jquery script to retrieve select value on click: works in Firefox, does not in Internet Explorer
<p>vatshal here; I am using a jquery script in which I am getting the current value of a select box on mouse click; it works on Mozila Firefox but doesn't work in Internet Explorer</p>

<p>onclick in IE shows previous value from the select box id </p>

<pre><code>&lt;select&gt;
         &lt;option&gt;value1&lt;/option&gt;
         &lt;option&gt;value2&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>if we are clicking on value2 then jquery gets the value of the first element, but it is working on mozila firefox only; jquery code is given  below:</p>

<pre><code>&lt;script type="text/javascript" src="jquery-1.4.2.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    $(function(){
    $("#multiple").click(function(){
        var a=$("#multiple").val();
        $("#to").val(a);
    });
});
&lt;/script&gt;
</code></pre>

<p>Please help me</p>
