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

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -