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";
}
}
password visibility toggle
<div class="input-group">
<input type="password" class="form-control pwd" id="login_password" placeholder="" name="password" required>
<span class="input-group-btn" id="eyeSlash">
<button class="btn btn-default reveal" onclick="visibility3()" type="button"><i class="fa fa-eye-slash" aria-hidden="true"></i></button>
</span>
<span class="input-group-btn" id="eyeShow" style="display: none;">
<button class="btn btn-default reveal" onclick="visibility3()" type="button"><i class="fa fa-eye" aria-hidden="true"></i></button>
</span>
</div>
function visibility3() {
var x = document.getElementById('login_password');
if (x.type === 'password') {
x.type = "text";
$('#eyeShow').show();
$('#eyeSlash').hide();
}else {
x.type = "password";
$('#eyeShow').hide();
$('#eyeSlash').show();
}
}
Password visibility
function myFunction() {
var x = document.getElementById("myInput");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
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