The inspiration for creating this plugin came from a blog I follow. Paul Lewis wrote on his blog about Better password form fields and I really liked his design for an inline approach to password verification.
I also decided to add an entropy option where this plugin can be combined with a third party plugin by xero.
-
Include jQuery:
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
-
Include plugin's code and CSS:
<script src="/js/jquery.passtip.min.js"></script> <link href="/css/jquery.passtip.css" rel="stylesheet" type="text/css">
-
Call the plugin:
$('input[type=password]').passTip();