###jQuery Plugin #Password Requirements ##The easy way to help users meet your minimum password requirements
jQuery Plugin to Check Minimun Password Requirements View Demo
1.) Add CSS before the opening of the <body> tag
<link rel="stylesheet" href="css/jquery.passwordRequirements.css">
2.) Add jQuery and plugin. (recommended to place at the end before the close of the <body> tag for faster loading )
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>window.jQuery || document.write("<script src='_/js/lib/jquery-1.10.2.min.js'>\x3C/script>")</script>
<script src="js/jquery.passwordRequirements.min.js"></script>
3.) Call the plugin Inside of a <script> block after the include of the step 2
$(document).ready(function (){
$(".pr-password").passwordRequirements();
});
4.) HTML5 markup
<input type="password" class="pr-password">
jQuery password requirements plugin is very easy to configure to your exact requirements.
####Password Requirements Options numCaracters (Number of minimun required caracters)
default: 8
options: integer
useLowercase (Make mandatory a lowercase caracter)
default: true
options: boolean (true / false)
useUppercase (Make mandatory a upercase caracter)
default: true
options: boolean (true / false)
useNumbers (Make mandatory a numeric caracter)
default: true
options: boolean (true / false)
useSpecial (Make mandatory a special caracter)
default: true
options: boolean (true / false)
####Other Options
infoMessage (Change the message to help the user understan the requirements)
default: 'The minimum password length is 8 characters and must contain at least 1 lowercase letter, 1 capital letter 1 number and 1 special caracter.'
options: string
style (The design of the tooltip)
default: 'light'
options: 'dark', 'light'
fadeTime (Time in milliseconds of fade transition at open / close)
default: 300
options: integer
Copyright (c) 2014 Elation Base Licensed under the MIT license.
/*
* jQuery Minimun Password Requirements 1.1
* http://elationbase.com
* Copyright 2014, elationbase
* Check Minimun Password Requirements
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/