$.passwordPunch – jQuery Plugin
jQuery plugin to validate password field in nice way!
This plugin let users know about the rules that matches and pending match with sleek and stylish CSS styles. This jQuery plugin can be used in any project which needs signup process!
- Well documented
- Smart validation rules
- Twitter bootstrap example included
- Custom jQuery Events
- Responsive UI
- CSS animation effect
- Ease of installation
Example
<script type="text/javascript">
$(document).ready(function () {
$('#password').passwordPuch({
rules: {
uppercase: {label: 'Two Upper case characters', limit: 2},
lowercase: {label: 'One Lower case character', limit: 1},
number: {label: 'One number', limit: 1},
special_char: {label: 'One special chracter', limit: 1},
min_length: {label: '6 Characters', limit: 6}
},
onValidationCompleted: function () {
//fires if rules are not validated
//e.g. can be enable submit button
},
onValidationError function () {
//fires if rules are not validated
//e.g. can be used to disable submit button
}
});
});
</script>