Ibnu-Rusdianto

JS Show Hide Password

Jul 28th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.       var cek = $('.form-checkbox').val();
  3.       $('.form-checkbox').click(function() {
  4.         if ($(this).is(':checked')) {
  5.           $('.form-password').attr('type', 'text');
  6.         } else {
  7.           $('.form-password').attr('type', 'password');
  8.         }
  9.       });
  10.     });
Advertisement
Add Comment
Please, Sign In to add comment