Replacing characters using jQuery
<p>I'm trying to remove commas from all of my textboxes on keyup.  I came up with the script below but it's not working.  Can anyone see what I am doing wrong?</p>

<pre><code>&lt;script&gt;
    $("input[type='text']").keyup
    (
        function () 
        {
            alert('1');
            $(this).val($(this).val().replace(/[,]/g, ""));
        }
    );
&lt;/script&gt;
</code></pre>

<p><strong>NOTE:</strong> please excuse the $ in Script.  SO won't let me post it otherwise...</p>
