Login
//PassWord field Show Hide
if (jQuery('.rm-login-wrapper [name="pwd"]').length > 0) { const passwordInput = jQuery('.rm-login-wrapper [name="pwd"]:not(.rm-login-widget-modal .rm-login-wrapper [name="pwd"])'); const closestDiv = passwordInput.closest('div.rminput');
//console.log(closestDiv); closestDiv.addClass('rm-password-toggle-wrap'); closestDiv.prepend('');
const togglePassword = document.querySelector(".rm-togglePassword"); if (togglePassword) { togglePassword.addEventListener("click", function () { const password = document.querySelector("input[name='pwd']"); const type = password.getAttribute("type") === "password" ? "text" : "password"; password.setAttribute("type", type); this.classList.toggle("rm-togglePassword-show"); }); } }