what is min attribute in password
<input type="password" name="password" min="5">
<input type="text" name="username" min="5">
<!-- The minlength attribute specifies the minimum number
of characters required in an input field.-->
what is min attribute in password
<input type="password" name="password" min="5">
<input type="text" name="username" min="5">
<!-- The minlength attribute specifies the minimum number
of characters required in an input field.-->
javascript password matching
let pass1 = document.getElementById("pass-one");
let pass2 = document.getElementById("pass-two");
let run = document.getElementById("run");
run.addEventListener("click", function () {
if (pass1.value !== pass2.value) {
pass1.style.border = '3px solid red';
pass2.style.border = '3px solid red';
run.innerHTML = "Mismatch";
} else {
pass1.style.border = '3px solid green';
pass2.style.border = '3px solid green';
run.innerHTML = "Matching"
}
})
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us