Tab key does not work
<p>I'm using this code to stop the user from entering numeric values into the textboxes:</p>

<pre><code>$('input[type=text]').keydown(function(event) {
    // Allow only backspace and delete
    if (event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 190) {
        // let it happen, don't do anything
    }
    else {
        // Ensure that it is a number and stop the keypress
        if ((event.keyCode &lt; 48 || event.keyCode &gt; 57) &amp;&amp; (event.keyCode &lt; 96 || event.keyCode &gt; 105)) {
            event.preventDefault();
        }
    }
});
</code></pre>

<p>However, this stops the tab key from focusing on the next textbox. If I <a href="http://stackoverflow.com/questions/4762594/jquery-keyup-for-tab-key">add this code</a> to the keydown event, the tab key works, but the user cannot enter any value in the textbox at all and the tab key will only focus on the immediate next box. After that, it does not go to the next box, when tab key is pressed again.  </p>

<pre><code>var code = event.keyCode || event.which;
if (code == 9) {
    alert ("Tab key pressed");
}
return false;
</code></pre>

<p>Here's the code at jsfiddle: <a href="http://jsfiddle.net/N7BWF/1/" rel="nofollow">http://jsfiddle.net/N7BWF/1/</a></p>
