title: jquery onchange select option not working
body: <p>Currently my code looks like this, </p>
  
  <pre><code>$("#select").change(function() {
      var thes = $(this).attr('value');
      var next = $('option[:selected]').next().attr('value');
      alert(next);
  });
  </code></pre>
  
  <p>and my <code>select</code> looks like this</p>
  
  <pre><code>&lt;select id="select"&gt;
      &lt;option value="1"&gt;1&lt;/option&gt;
      &lt;option value="2"&gt;2&lt;/option&gt;
      &lt;option value="3"&gt;3&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I tried using <code>alert</code> the variable <code>thes</code> and it pops up but when I use the variable <code>next</code> it won't. What is wrong with my code? Please help.</p>