https://github.com/mathieuloutre/jquery-mask-password
Hides the content of a text field after a given delay
https://github.com/mathieuloutre/jquery-mask-password
Last synced: 3 months ago
JSON representation
Hides the content of a text field after a given delay
- Host: GitHub
- URL: https://github.com/mathieuloutre/jquery-mask-password
- Owner: MathieuLoutre
- License: mit
- Created: 2014-05-06T20:43:00.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-02-17T11:37:58.000Z (over 11 years ago)
- Last Synced: 2025-07-22T07:35:42.141Z (11 months ago)
- Language: JavaScript
- Size: 164 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jquery-mask-password
> Hides the content of a text field after a given delay
## Why?
Masking your password is very useful, but not always. Particularly not when you're typing. This is simple solution to the problem.
## How?
It changes the type of the input from password to text when typing, and back to password after a delay (1s by default)
## Usage
Install using bower: `bower install jquery-mask-password`
Or using npm: `npm install jquery-mask-password`
Or just by downloading the [tarball](https://github.com/MathieuLoutre/jquery-mask-password/archive/master.zip)
```js
$("input[type=password").maskPassword();
$("input[type=password").maskPassword(2000);
```
## Changelog
- 0.2.2 - Use `setSelectionRange` to not lose focus in FF
- 0.1.1 - Remove console.log
- 0.1.0 - First release