To access this must be logged in to your account. Please login





const togglePassword = document.querySelector(‘#togglePassword’);
const password = document.querySelector(‘#pwd’);

togglePassword.addEventListener(‘click’, function (e) {
const type = password.getAttribute(‘type’) === ‘password’ ? ‘text’ : ‘password’;
password.setAttribute(‘type’, type);
this.classList.toggle(‘bi-eye’);
});