Hello, I'm starting to learn JavaScript, and I'm not getting any way to make my code validate if there are 3 uppercase, 2 numbers, and 1 special characters in my input. I would like to know what I should be making of error, because I made several attempts, I researched in several sites and no way works. Here is the base code:
/* Validação do Campo Senha*/
if (document.formulario.senha.value.length < 8) {
alert("A senha deve conter no minímo 8 digitos!");
document.formulario.senha.focus();
return false;
}
Thank you for your attention!