Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

show password fa-eye javascript

$("body").on('click', '.toggle-password', function() {
  $(this).toggleClass("fa-eye fa-eye-slash");
  var input = $("#pass_log_id");
  if (input.attr("type") === "password") {
    input.attr("type", "text");
  } else {
    input.attr("type", "password");
  }

});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #password #javascript
ADD COMMENT
Topic
Name
9+3 =