$("#password-show-button").mouseup(function () { $("#password").attr("type", "password"); }); $("#password-show-button").mousedown(function () { $("#password").attr("type", "text"); });
How to View Toggle Password On and Off using jQuery
Learn how to toggle password field on and off using jQuery the easy way
Created on Nov 07, 2021
•265 views
If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️
Load comments for How to View Toggle Password On and Off using jQuery
PostSrc Code Components
Collection of Tailwind CSS components for everyone to use. Browse all of the components that are right for your project.
View ComponentsSponsors 👑
+ Add YoursOther Code Snippets
All Snippets
How to Query Between 2 Dates in Laravel Eloquent
2 years ago

How to Change Laravel Forge Server Timezone?
2 years ago

How to add class attribute to the body tag in NuxtJs
2 years ago

Laravel Blade @auth Example
2 years ago

How to Empty an Array in Javascript
1 year ago

How to Install MariaDB on macOS Monterey
1 year ago