Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ... #27

Closed
MB34 opened this issue May 5, 2015 · 2 comments
Closed

How to ... #27

MB34 opened this issue May 5, 2015 · 2 comments

Comments

@MB34
Copy link

MB34 commented May 5, 2015

In your demo, the middle one has the password initially shown with a toggle. I want it initially masked, like in IE11 and have the show button showing. I don't see how to do that.

@MB34
Copy link
Author

MB34 commented May 5, 2015

Ah, crud, never mind. I figured it out:

.showPassword('focus', { show: false, toggle: { className: 'my-toggle' } });

@tylersticka
Copy link
Member

@MB34 That should work! If you don't need any extra options, you can also do...

$('#example').hidePassword(true);

// or...

$('#example').hideShowPassword(false, true);

Check out the README for more examples!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants