I want to allow basic characters A-Z, a-z,0-9
, and basic special characters ~``!@#$%^&*()_+-=[]{};'\:"|,./<>?
availalbe on a standard english keyboard to be only typed in a text area.
Looking for help !
Asked
Active
Viewed 5,013 times
1 Answers
8
Sample:
$('#text_area_id').keyup(function() {
$(this).val($(this).val().replace(/[^A-Za-z0-9~`!@#$%^&*()_+-=\[\]{};'\\:"|,.\/<>?]/g,''))
});

user748472
- 96
- 2