title: alert in jquery onChange event
body: <p>My code is below. What I want is, when the drop down value is equal to '1' I want to alert.But it is not working. Here is my code.</p>
  
  <pre><code>&lt;div&gt;
      &lt;select id="number"&gt;
          &lt;option value="1"&gt;One&lt;/option&gt;
          &lt;option value="2"&gt;Two&lt;/option&gt;
          &lt;option value="3"&gt;Three&lt;/option&gt;
      &lt;/select&gt;
  
  &lt;/div&gt; 
  $('#number').change(function()
     {
          if($('#number').val()=='1'){
          alert('f');
     });
  
  }
  </code></pre>
  
  <p>Here the <a href="http://jsfiddle.net/tfx0s33e/" rel="nofollow">demo</a></p>