Skip to content

Instantly share code, notes, and snippets.

@tylor
Created August 30, 2009 09:43
Show Gist options
  • Save tylor/177913 to your computer and use it in GitHub Desktop.
Save tylor/177913 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Plaintext Passwords</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#password').keyup(function() {
$('#plaintext').text($('#password').val());
});
});
</script>
</head>
<body>
<p id="plaintext">This will display a password in plaintext:</p>
<p class="password-wrapper"><input id="password" type="password" /></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment