Closed melvinchia closed 5 years ago
Found it.. You could probably add a method to do it programatically though..
$("#password_field").trigger("keyup").trigger("focus");
Documenting it in case anybody else needs to do it for now.
Edit: Added focus trigger. If the field was blank and not focused before the .val took effect, the focus trigger brings up the strength meter. Without the focus, the score is updated but the visuals aren't.
I don't see the need to add a method for something that you can do as you stated (using trigger).
BTW, I've updated your comments to properly use codeblocks :wink:
Hi, I programatically update the password field using
but the score isn't updated. How do I manually trigger the scoring?