jQuery password strength meter that uses images
I'm looking for a password strength meter that uses images to illustrate the strength of the password.
I've seen a lot that uses text, but I c开发者_运维百科ouldn't find a way to properly change the text to a desired image I wanted.
Is there any simple implementation I can use that can answer my needs?
Thanks,
I don't see any password strength plugins giving this option from the box. Just take the plugin you picked and change the code parts that shows the messages and put <img />
instead. If you are having a problem with that tell me the plugin you chose and I'll help you with that.
CODE:
container.text(settings.texts[level]).attr('class', 'password_strength ' + _class);
Change .text to .html and remember to add the images like thus:
'texts' : {
1 : "<img src='....' />",
2 : "<img src='....' />",
3 : "<img src='....' />",
4 : "<img src='....' />",
5 : "<img src='....' />"
}
And everything should be sorted.
精彩评论