https://github.com/mikeludemann/toggleviewinput
Toggle input type with password for security values
https://github.com/mikeludemann/toggleviewinput
css html javascript module-pattern
Last synced: about 1 month ago
JSON representation
Toggle input type with password for security values
- Host: GitHub
- URL: https://github.com/mikeludemann/toggleviewinput
- Owner: mikeludemann
- License: mit
- Created: 2018-04-29T13:26:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-29T14:41:20.000Z (about 8 years ago)
- Last Synced: 2025-03-28T02:47:26.689Z (about 1 year ago)
- Topics: css, html, javascript, module-pattern
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# toggleViewInput
Toggle input type with password for security values
## Examples
```code
toggleView.text(inputElement);
toggleView.color(inputElement);
toggleView.date(inputElement);
toggleView.datetime(inputElement);
toggleView.datetimelocal(inputElement);
toggleView.time(inputElement);
toggleView.week(inputElement);
toggleView.month(inputElement);
toggleView.tel(inputElement);
toggleView.number(inputElement);
toggleView.url(inputElement);
toggleView.email(inputElement);
toggleView.file(inputElement);
toggleView.range(inputElement);
toggleView.image(inputElement);
toggleView.hidden(inputElement);
toggleView.radio(inputElement);
toggleView.checkbox(inputElement);
/* Call Method with Event Listener */
document.getElementById("toggle").addEventListener("click", function () {
toggleView.text("#name");
});
```