Posts by Pedro Vinicius • 39 points
4 posts
-
1
votes1
answer1489
viewsQ: Javascript validate earlier date than today
I am trying to validate a date field of id 'txtDat', as follows: I want that if the person informs an earlier date than today, show a alert("Por favor, insira uma data futura."), and if you enter a…
javascriptasked Pedro Vinicius 39 -
1
votes2
answers87
viewsQ: Variable to validate 'Login' field?
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…
-
1
votes1
answer4739
viewsQ: Validate Name and Surname in Javascript?
I have a form called 'Cad' of registration, my only validation that is missing is the name and surname, id, txtnome and txtsobrenome, I need a function that validates them as follows: Fields can…
-
-1
votes1
answer1785
viewsQ: Validate date of birth, so you can not register under 18 years (Javascript)
I have a field called txtdata_nasc of the date type. I need the user not to be able to type a date that makes him less than 18 years old, but also that he cannot be of an absurd age, such as 100…