17 lines
471 B
JavaScript
Executable File
17 lines
471 B
JavaScript
Executable File
function mostrarPassword(){
|
|
var cambio = document.getElementById("txtPassword");
|
|
if(cambio.type == "Password"){
|
|
cambio.type = "text";
|
|
cambio.src = "img/icons/eye-slash-solid.png";
|
|
}else{
|
|
cambio.type = "Password";
|
|
cambio.src = "img/icons/eye-solid.png";
|
|
}
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
//CheckBox mostrar contraseña
|
|
$('#ShowPassword').click(function () {
|
|
$('#Password').attr('type', $(this).is(':checked') ? 'text' : 'password');
|
|
});
|
|
}); |