jquery not trapping keyCode
<p>I have the following as part of some code - you can see it at <a href="http://jsfiddle.net/73c3X/1/" rel="nofollow">http://jsfiddle.net/73c3X/1/</a></p>

<pre><code>    if (txt.val().length &gt;= 10 &amp;&amp; (event.keyCode != 46 || event.keyCode != 8 || event.keyCode != 9)) {
        alert(txt.val().length + "keycode = " + event.keyCode);
        event.preventDefault();
        $('.onlynumbers').text("10 digits in mobile").show(200);
    }
</code></pre>

<p>The idea is to prevent someone entering more than 10 digits and display a message.</p>

<p>I would have expected the line </p>

<pre><code>if(txt.val().length &gt;= 10 &amp;&amp; (event.keyCode != 46 || event.keyCode != 8 || event.keyCode != 9))
</code></pre>

<p>to allow a tab, backspace or delete to be used, however as you can see in the fiddle, they get past the if statement and trigger the alert - which will even show that that the length = 10 and the keyCode = 9.</p>

<p>It looks fine to me, obviously it isn't.  Am I missing something or will this be a DOH! moment?</p>
