title: How to trigger an event after hitting Tab key in textbox
body: <p>I want to trigger an event like displaying an alert message when I hit the <code>Tab</code> key inside a textbox.</p>
  
  <pre><code>&lt;input type="text" /&gt;
  
  $("input").blur(function (e) {
     if (e.which == 9)
         alert("Hurray!!!");
  });
  </code></pre>
  
  <p>What I want to happen is that whenever I type inside a textbox then hit <code>Tab</code> it will do something. </p>
  
  <p>Im using <code>jquery1.7.2.min.js</code></p>
  
  <p>I really don't know if Im doing it right.</p>
  
  <p>For the demo <a href="http://jsfiddle.net/QfCpC/" rel="nofollow">http://jsfiddle.net/QfCpC/</a></p>