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
Post a Comment