SHARE
TWEET

Untitled

a guest Dec 11th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4. $("#check_your_password").change( function() {
  5.          var $input = $('input.show_pwd');
  6.          var change = $(this).is(":checked") ? "text" : "password";
  7.           var rep = $("<input type='" + change + "' />")
  8.                     .attr("id", $input.attr("id"))
  9.                     .attr("name", $input.attr("name"))
  10.                     .attr('class', $input.attr('class'))
  11.                     .val($input.val())
  12.                     .insertBefore($input);
  13.                 $input.remove();
  14.                 $input = rep;
  15.     });
  16.  
  17. /*
  18. <input type='password' id='check_your_password' />
  19. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top