javascript dropdownchecklist selected/checked options are not updated on deselecting
<p>I am new to javascript and jquery. I have a asp.net page where a dropdown checklist is used. When i select some options from the drop down i am able to get all the selected options first time. When i try to deselect some of the selected items, am not getting the updated selected options in my code. Still it contains the previously selected options plus newly selected options. The options which i unchecked are still available in the code. Can somebody help where i am going wrong?</p>

<p>the code below is what i am using to access the selected/checked options:</p>

<pre><code>        var dropdown = this.sourceSelect;            
        var c = dropdown.find("option:selected");
</code></pre>

<p>I also tried using checked on the options:</p>

<pre><code>        var c = dropdown.find("option:checked");
</code></pre>

<p>The value in c is not updated properly. The deselected options are also available.
Looking forward for your help.
Thanks</p>
