1
I’m having trouble creating a variable to validate my Login field.
For example, in my 'First' and 'Last' fields, I have this variable:
var padrao = /[^a-zà-ú]/gi;
Valid in such a way: if 'Name' or 'Surname' is not according to such variable, that is, it cannot contain numbers or special characters, only those of the variable, it gives an error message.
I want to do the same with my 'Login' (username) field, I want it to be a variable that cannot enter accents or special characters, only numbers and letters, uppercase or lowercase.
Could help me in creating such a variable?