how to make a show password button
function myFunction() {
var x = document.getElementById("*passwordbox-id*");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
how to make a show password button
function myFunction() {
var x = document.getElementById("*passwordbox-id*");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
how to make a show password button
function myFunction() {
var x = document.getElementById("*passwordbox-id*");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
html show password
//Javascript show all password textboxes script by me
var k = document.getElementsByTagName('input')
for(i=0;i<k.length;i++){
if(k[i].type = "password"){
k[i].type = "text"
}
}
html show password
//Javascript show all password textboxes script by me
var k = document.getElementsByTagName('input')
for(i=0;i<k.length;i++){
if(k[i].type = "password"){
k[i].type = "text"
}
}
how to add see button in password input in html
togglePassword.addEventListener('click', function (e) {
// toggle the type attribute
const type = password.getAttribute('type') === 'password' ? 'text' : 'password';
password.setAttribute('type', type);
// toggle the eye / eye slash icon
this.classList.toggle('bi-eye');
});Code language: JavaScript (javascript)
how to add see button in password input in html
togglePassword.addEventListener('click', function (e) {
// toggle the type attribute
const type = password.getAttribute('type') === 'password' ? 'text' : 'password';
password.setAttribute('type', type);
// toggle the eye / eye slash icon
this.classList.toggle('bi-eye');
});Code language: JavaScript (javascript)
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