jQuery validator to allow only basic characters -


i want allow basic characters a-z, a-z,0-9, , basic special characters ~``!@#$%^&*()_+-=[]{};'\:"|,./<>? availalbe on standard english keyboard typed in text area.
looking !

sample:

    $('#text_area_id').keyup(function() {         $(this).val($(this).val().replace(/[^a-za-z0-9~`!@#$%^&*()_+-=\[\]{};'\\:"|,.\/<>?]/g,''))     }); 

Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -

c# - Binding attached property to IEnumerable -