Password Show/Hide on Checkbox click

21:17:00 , 0 Comments


Password show hide with jQuery
This is a simple tutorial to show a password in a input box when a checkbox is checked and hide it when the checkbox is unchecked using jQuery.

Requirement

HTML Markup

We have a password input field with the class “password” and a checkbox with the id “showHide

jQuery

Include jQuery Library.
Place the code inside of document ready function as above.
When the checkbox is clicked, input field password type will be changed to text type.
So the password will be visible.
Yeah, That’s it. keep sharing this post.

0 comments :