0

I am using jquery password generator plugin. But I also want to show the strength meter, after the password generated it is pasted into the textbox. I want to call a function when the password is pasted into the text-box,but I cant detect the event.

I tried :-

<script type="text/javascript" src="http://gigstarr.com/js/pGenerator.jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#mylink').pGenerator({ 'bind': 'click', 'passwordElement': '#user_password', 'displayElement': '#user_password_show', 'passwordLength': 16, 'uppercase': true, 'lowercase': true, 'numbers': true, 'specialChars': true, 'onPasswordGenerated': function(generatedPassword) { alert('Please copy your Password :-' + generatedPassword); } }); }); </script> 


Any suggestions?

4
  • Try: 'bind': 'click paste', Commented Jun 28, 2013 at 10:48
  • have you checked if there is any error in firebug console ? Commented Jun 28, 2013 at 10:48
  • "After the password generatd it is pasted into the textbox." - What? How? From the alert in your code it appears that you expect the user to manually copy/paste the password between fields on your page, is that right? That seems a strange kind of user experience. Commented Jun 28, 2013 at 10:49
  • You can check here gigstarr.com/signup Commented Jun 28, 2013 at 11:15

1 Answer 1

2

I think your looking for the change event

Sign up to request clarification or add additional context in comments.

1 Comment

You can check here gigstarr.com/signup

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.