title: How to get select box option value in jQuery
body: <p>How to get the value of option select box in jQuery if I have the code like this,</p>
  
  <pre><code>&lt;select id='media' name='media'&gt;
      &lt;option value='1'&gt;media1&lt;/option&gt;
      &lt;option value='2'&gt;media2&lt;/option&gt;
      &lt;option value='3'&gt;media3&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>When I code for on change event, </p>
  
  <pre><code>$(document).ready(function()
  {
      $("#media").change(function()
      {
          var id=$(this).val();
          var dataString = 'id='+ id;
          alert(id); return false;
      });
  });
  </code></pre>
  
  <p>It gives me <code>media1</code>,<code>media2</code>,<code>media3</code> instead of <code>1, 2, 3</code></p>
  
  <p>How to get the value 1, 2, 3?</p>