“Veja minha senha jQuery” Respostas de código

JQuery Mostrar senha

 $("#showpaswd").click(function () {
        var x = document.getElementById("cpassword");
        if (x.type === "password") {
            x.type = "text";
        } else {
            x.type = "password";
        }
    });
Nervous Newt

Veja minha senha jQuery

$('#check').click(function(){
	if(document.getElementById('check').checked) {
    $('#test-input').get(0).type = 'text';
  } else {
      $('#test-input').get(0).type = 'password';
  }
});

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type='password' id='test-input' /> Show password <input type='checkbox' id='check' />
Clear Civet

Respostas semelhantes a “Veja minha senha jQuery”

Perguntas semelhantes a “Veja minha senha jQuery”

Mais respostas relacionadas para “Veja minha senha jQuery” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código