Windows Vista has a nice option labeled Show characters right below password input fields:
"Show characters" checkbox under password input field
So without further ado, here’s what it looks like on the web:
masking/unmasking passwords demo
This is the HTML code from the example:
<form> <label> Password: <br /> <input id="password" name="password" type="password" /> </label> <label> <input id="showcharacters" name="showcharacters" type="checkbox" />
Show characters </label> </form>
$(document).ready(function() { $('#showcharacters').click(function() { if ($(this).attr('checked')) { $('#password').replaceWith('<input id="password" name="password"
type="text" value="' + $('#password').attr('value') + '" />'); } else { $('#password').replaceWith('<input id="password" name="password"
type="password" value="' + $('#password').attr('value') + '" />'); } }); });
Either way this would be a better solution to having to type a password two times in order to confirm it.
No hay comentarios:
Publicar un comentario