2
Good night
I would like a help of what would be a real-time password check in javascript and html, I think of two text boxes and a message below that would indicate something like "divergent password" until the two fields are filled with the same value, one or example would help me a lot!
<html>
<head>
<title>Validade Senha</title>
<script> function validarSenha(){
senha1 = document.f1.senha1.value
senha2 = document.f1.senha2.value
if (senha1 == senha2) alert("SENHAS IGUAIS")
else alert("SENHAS DIFERENTES") }
</script>
</head>
<body> VALIDAR SENHA <br> <br>
<form action="" name="f1">
Senha: <input type="password" name="senha1" size="20"> <br>
Confirmar Senha: <input type="password" name="senha2" size="20"> <br>
<input type="button" value="Validar" onClick="validarSenha()">
</form>
</body>
</html>
Thank you for reading!
Voce can use patern and the required field only patern in safari does not work yet dai Voce would have to use also javascript
– user45474
put html code there that I design for you
– user45474
Assanges help me please!
– Vitor Marques Lourenço
Face your function validateNew() this correct is only with some syntax errors but Do you want the end to display a friendly message instead of an Alert and that? does not understand right your question yet @Vitor Marques
– user45474
What I wanted is that I did not need to press the "Validate" button to identify if the two fields are equal, this check would be being done at all times in real time.
– Vitor Marques Lourenço
you can take this Lert, as a feedback could be a text in the same form, if you help me will help me very expensive, I spent hours trying to do this, I am layman in the subject yet...
– Vitor Marques Lourenço
mano finished the cafe around here but stay there in the show for sure someone will help you abs
– user45474