landing-klikaset/wp-content/plugins/cf7-add-password-field/js/eye.js

11 lines
343 B
JavaScript

function pushHideButton(id) {
var txtPass = document.getElementById(id);
var btnEye = document.getElementById("buttonEye-"+id);
if (txtPass.type === "text") {
txtPass.type = "password";
btnEye.className = "fa fa-eye-slash";
} else {
txtPass.type = "text";
btnEye.className = "fa fa-eye";
}
}