I have two text fields in my form. The data that you must enter in the field is the name and city, respectively. I want to check that the user has not entered any special characters, such as !, @, # ........ that is, the only thing the user must enter must be az, AZ, although the user can enter Underscore (_ ), but not numbers, not special characters.
I want to test this with JavaScript, how can this be done.
Thanks in advance.
source
share