HI
In some current theme versions, it doesn't work, you should use then
In some current theme versions, it doesn't work, you should use then
<i class="fa fa-eye" id="visibility_icon" style="cursor: pointer"></i>
require(['jquery'], $("#visibility_icon").on("click",function() { var x = document.getElementById("password"); if (x.type === "password") { x.type = "text"; } else { x.type = "password"; } })
Regards!