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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -