Magic Icon Password Stength Checker: Magic JavaScript

Quick Jump ↵

Usage

Add data-mjf="password_strength_checker" id="FIELD_ID" to your <input type="text"> or <input type="password"> tag.

Add <script type="text/javascript">$m.wand.password_strength_checker = true;</script> inside your <body> tag.

Examples

<input type="text" name="" value="" data-mjf="password_strength_checker" id="password_strength_checker_example1">

<input type="password" name="" value="" data-mjf="password_strength_checker" id="password_strength_checker_example2">

Notes

The algorithm is based on this Stack Overflow comment.

« Back to the main documentation