Jquery filter text boxes (Preventing user from inserting certain characters)
<p>I am trying to prevent users from typing certain characters in text boxes and this is the code that I have so far :</p>

<pre><code>$().ready(function(){ 

        $(".textbox").keypress(function(event)
        {
        var keyVal = event.keyCode;

                    if((keyVal &gt; 48 &amp;&amp; keyVal &lt; 57))// Numbers
                    {
                    return false;
                    }
         });
});
</code></pre>

<p>It is entering the event and the condition but the character is still inserted. Any ideas on how I go about this?</p>
