Inicio
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user