detect numbers or letters with jquery/javascript?
<p>i want to use an if-statement to run a code only if the user types in a letter or a number.</p>

<p>i could use </p>

<pre><code> if(event.keyCode == 48 || event.keyCode == 49 || event.keyCode == 50..) {
       // run code
 }
</code></pre>

<p>but is there an easier way to do this? maybe some keycodes dont work in all web browsers?</p>
