An open API service indexing awesome lists of open source software.

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

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");
});
```