title: jQuery :selected not working, always returning same value
body: <p>I am facing a very strange problem where the jQuery :selected is always returning the same value.</p>
  
  <p>For the example, lets say I have this HTML:</p>
  
  <pre><code>&lt;select class="some_select"&gt;
     &lt;option value="0"&gt;Zero&lt;/option&gt;
     &lt;option value="1"&gt;One&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>then I run this jQuery code on $(document).ready():</p>
  
  <pre><code>    $('.some_select').change(function() {
          alert($(this).attr('value'));
      });
  </code></pre>
  
  <p>In the case above, the alert always display the good value of the selected option, but if I run this:</p>
  
  <pre><code>var type = $('.some_select :selected').attr('value');
  </code></pre>
  
  <p>with this code, the alert always return '0', no matter what option is selected.</p>
  
  <p>I also tried with:</p>
  
  <pre><code>$('.some_select').find(':selected')
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$('.some_select').filter(':selected')
  </code></pre>
  
  <p>also</p>
  
  <pre><code>$('.some_select option:selected')
  </code></pre>
  
  <p>Thanks In advance for any help!</p>