JQuery validator allowing only base characters

I want to allow the basic characters AZ, az,0-9 , and the main special characters ~`` !@ #$%^&*()_+-=[]{};'\:"|,./<>? availalbe on a standard English keyboard for entering text area only.
Seek help!

+4
source share
2 answers

Example:

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

Try looking in this thread: Regular expression in jQuery

0
source

All Articles