jQuery password strength checker

后端 未结 13 2032
遥遥无期
遥遥无期 2020-12-08 00:25

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

13条回答
  •  孤城傲影
    2020-12-08 01:24

    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

提交回复
热议问题