Is there a way to disable masking for ?
I tried input[type='password'][name='TxtPassword]{ -webkit-text-security: none !important;}
But this didn't work.
Thanks in advance.
You can change the type using JavaScript. Setting type to text
will show the text.
document.querySelector("button").addEventListener("click", function () { var textbox = document.querySelector("input"); if (textbox.type == "password") { textbox.type = "text"; } else { textbox.type = "password"; } });
<input type="password" value="password" /> <button>Toggle type</button>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.