hide show password javascript code example
Example 1: html show password
//Javascript show all password textboxes script by me
var k = document.getElementsByTagName('input')
for(i=0;i
Example 2: password visibility toggle
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();
}
}