Answers for "show password in jquery"

1

show password on click button jquery

<div class="signin-form u-password p-relative">
    <span class="view-password"><i class="fas fa-eye"></i></span>
	<input id="pass" class="pass" type="password" placeholder="Enter your password"/>
</div>

$('.view-password').on('click', function () {
  let input = $(this).parent().find(".pass");
  input.attr('type', input.attr('type') === 'password' ? 'text' : 'password');
});
Posted by: Guest on April-30-2021
1

show password on click button jquery

<div class="signin-form u-password p-relative">
    <span class="view-password"><i class="fas fa-eye"></i></span>
	<input id="pass" class="pass" type="password" placeholder="Enter your password"/>
</div>

$('.view-password').on('click', function () {
  let input = $(this).parent().find(".pass");
  input.attr('type', input.attr('type') === 'password' ? 'text' : 'password');
});
Posted by: Guest on April-30-2021
0

jquery show password

$("#showpaswd").click(function () {
        var x = document.getElementById("cpassword");
        if (x.type === "password") {
            x.type = "text";
        } else {
            x.type = "password";
        }
    });
Posted by: Guest on June-27-2020
0

jquery show password

$("#showpaswd").click(function () {
        var x = document.getElementById("cpassword");
        if (x.type === "password") {
            x.type = "text";
        } else {
            x.type = "password";
        }
    });
Posted by: Guest on June-27-2020
5

how to make a show password button

function myFunction() {
  var x = document.getElementById("*passwordbox-id*");
  if (x.type === "password") {
    x.type = "text";
  } else {
    x.type = "password";
  }
}
Posted by: Guest on March-28-2020
5

how to make a show password button

function myFunction() {
  var x = document.getElementById("*passwordbox-id*");
  if (x.type === "password") {
    x.type = "text";
  } else {
    x.type = "password";
  }
}
Posted by: Guest on March-28-2020
0

view my password 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' />
Posted by: Guest on November-25-2020
0

view my password 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' />
Posted by: Guest on November-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language