I\'m quite new to jQuery, and I\'ve written a simple function to check the strength of a password for each keypress.
The idea is that every time a user enters a char
Find complete code below:
HTML:
Password strength check with jquery
0%
Script
$(function(){
$("#pwd").complexify({}, function(valid, complexity){
//console.log("Password complexity: " + Math.round(complexity));
$("#pg").val(Math.round(complexity));
$("#cpx").html(Math.round(complexity)+'%');
});
});
Please complete working source code here