{"id":67,"date":"2019-09-15T05:37:58","date_gmt":"2019-09-15T05:37:58","guid":{"rendered":"http:\/\/sumitjangid.com\/?p=67"},"modified":"2019-09-15T05:37:58","modified_gmt":"2019-09-15T05:37:58","slug":"password-mismatch","status":"publish","type":"post","link":"http:\/\/sumitjangid.com\/index.php\/2019\/09\/15\/password-mismatch\/","title":{"rendered":"Password Mismatch"},"content":{"rendered":"\n<p>you can use the following code to check the password matching<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> $(document).ready(function () {\n         \n        $(\"#confirm_password\").keyup(function () {\n           var password = $(\"#newpass\").val();\n            var confirmPassword = $(\"#confirm_password\").val();\n\n            if (password != confirmPassword) {\n                $(\"#divCheckPasswordMatch\").html(\"Passwords do not match!\");\n                $(\"#divCheckPasswordMatch\").removeClass(\"text-success\");\n                $(\"#divCheckPasswordMatch\").addClass(\"text-danger\");\n            }\n            else {\n                $(\"#divCheckPasswordMatch\").removeClass(\"text-danger\");\n                $(\"#divCheckPasswordMatch\").addClass(\"text-success\");\n                $(\"#divCheckPasswordMatch\").html(\"Passwords match.\");\n            }\n        }\n        );\n        \n    });\n    $(\"form\").submit(function (e) {\n        if ($(\"#newpass\").val() != $(\"#confirm_password\").val()) {\n            \n            e.preventDefault();\n            alert(\"Your passwords doesn't match.\");\n        }\n    })<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>you can use the following code to check the password matching<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,15,13],"tags":[],"_links":{"self":[{"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/posts\/67"}],"collection":[{"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":1,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":68,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/posts\/67\/revisions\/68"}],"wp:attachment":[{"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}