-1
How do I make to replace the button of Ver ou ocultar senha
by an eye inside the Password input (at the end of the right side)? I’m not very good at front-end and remembering that attribute title
shall not be amended or <input>
nor the icon of the eye.
function viewSenha(){
var tipo = document.getElementById("senha")
if (tipo.type == "password") {
tipo.type = "text";
}else{
tipo.type = "password";
}
}
<p> Senha: <input type="password" name="senha" id="senha" title="Campo para inserir a senha de login do funcionário" size="30" maxlength="32" required=""> <button type="button" title="Ver ou ocultar senha" onclick="viewSenha()"> Ver ou ocultar senha </button> </p>
use css, you can use the property
background
orbackground-image
– Ricardo Pontual