Extend jquery with allow only numbers
<p>What i want to do is set up a extended jquery function that allow no numbers in textboxes. This is what I have:</p>

<pre><code>$.fn.onlyNumbers = function(evt) {
    var e = event || evt; // for trans-browser compatibility
    var charCode = e.which || e.keyCode;

    if (charCode &gt; 31 &amp;&amp; (charCode &lt; 48 || charCode &gt; 57))
        return false;

    return true;
}
</code></pre>

<p>Is this correct?
How do i call it when it is an extended function and get it to do the same thing? </p>
