password strength checker jquery Example

password strength checker jquery : create password strength checker in jQuery full source code with example. check whenever key is pressed using keyup() function.

password strength checker jquery

How to check Password strength in jQuery with Demo? jQuery Function to Check Password Strength simple Password Strength Checker Source Code. using the jQuery UI Progressbar widget to display the password strength according to the user input.

How To Check Password Strength Using JQuery?


      <link href="" rel="stylesheet">
        <script src=""></script>
        <script src=""></script>
        <title>How to check password strength in jQuery -</title>
            #secure-pass-strength-status {
                padding: 5px 10px;
                color: #FFFFFF;
                border-radius: 4px;
                margin-top: 5px;

            .medium-secure-pass {
                background-color: #b7d60a;
                border: #BBB418 1px solid;

            .weak-secure-pass {
                background-color: #ce1d14;
                border: #AA4502 1px solid;

            .strong-secure-pass {
                background-color: #12CC1A;
                border: #0FA015 1px solid;
    <div class="row">
      <div class="col-md-6 col-md-offset-3">
          <h2>How to check password strength in jQuery -</h2><br/>        
            <input type="password" name="secure-pass" id="secure-pass" class="form-control"/>
            <div id="secure-pass-strength-status"></div>        

Don’t Miss : Password strength checker jQuery with progress bar

Also Read This πŸ‘‰   Ajax Autocomplete Live Search Suggestion using PHP MySQL


$(document).ready(function () {
  $("#secure-pass").on('keyup', function(){
    var number = /([0-9])/;
    var alphabets = /([a-zA-Z])/;
    var special_characters = /([~,!,@,#,$,%,^,&,*,-,_,+,=,?,>,<])/;
    if ($('#secure-pass').val().length < 6) {
        $('#secure-pass-strength-status').html("Weak (should be atleast 6 characters.)");
    } else {
        if ($('#secure-pass').val().match(number) && $('#secure-pass').val().match(alphabets) && $('#secure-pass').val().match(special_characters)) {
        } else {
            $('#secure-pass-strength-status').html("Medium (should include alphabets, numbers and special characters or some combination.)");

I hope you get an idea about password strength checker jquery.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Also Read This πŸ‘‰   javascript countdown timer minutes seconds