how to restrict the input "shift+0" to "shift+9", but "shift" should accept (like "shift+A" or other)
<p>I need to restrict input of special characters (like "/", "\") as well as "$" (shift+4), "#"(shift+3), but also need to allow capital characters like "A" (shift+a), etc.</p>

<p>Below code works, but I am not restrict "$" and all (from "shift+0" to "shift+9") as I'm allowing "shift", Give me some response how to do that,</p>

<p><strong>HTML</strong> </p>

<pre><code>&lt;input type="text" id="txtboxToFilter" /&gt;
</code></pre>

<p><strong>Jquery</strong></p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;
$(document).ready(function () {
    $("#txtboxToFilter").keydown(function (event) {
        // Allow: backspace, delete, tab, escape, and enter
        if (event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 || event.keyCode == 13 ||
        // Allow: Ctrl+A
        (event.keyCode == 65 &amp;&amp; event.ctrlKey === true) ||
        // Allow: home, end, left, right
        (event.keyCode &gt;= 35 &amp;&amp; event.keyCode &lt;= 39)) {
            // let it happen, don't do anything
            return;
        }
        else {
            // stop the keypress for special character "/", "\"
            if (event.keyCode &gt;= 190) {
                event.preventDefault();
            }
        }
    });
});
</code></pre>

<p></p>
