Hide/ Show Password Input Field In Jquery

This post all about hide show password input field in jquery. A password is a very sensitive input field as we know because this data generally use for log in an app or website for any secure application. Most of the website are nowadays having registration and login functionality, So why we type password field so it should not expose to others, time of typing. In that case, HTML having some default behavior to make text into star or dot symbol to avoid stole data by other people. But sometimes when we are typing our password by mistake/typo we are typing wrong in the keyboard but assuming we are typing correct one, In such scenario, we have to make sure to which text we are typing in that password input field we make it as readable format when we want.
Hide show password input field in jquery

To get these features we can have some small code in javascript, jquery, and angular js also. By using this code snippet we can easily make this password field hide show. By javascript, we can do it or by typing less code we can make this password filed toggle by jquery, the same way we can do by using angular js framework which is very widely used nowadays.

Here I am explaining toggle the password field by Jquery and If anyone wants to do it same by angular js or angular 2,4 6.. then they can ping me below comment section I will reach out with this solution. Here basically we are using Bootstrap CSS for the better look and feel and for eye icon we can use glyphicon icon and Jquery library.

Else another very conventional way we can make it like when you click the button and hold the mouse over the button it will show from dot to text when we release the mouse again it became invisible means dot or star symbol. Both of way the code has explained below, Picked up this code and implement how to hide show password filed by using jquery or javascript.

let start the code snippet now step by step. If anyone finds this blog is helpful please share it.