Display/hide Password Characters On Click – show-password.js

Category: Form , Javascript | January 10, 2019
Author:botflux
Views Total:1,549 views
Official Page:Go to website
Last Update:January 10, 2019
License:MIT

Preview:

Display/hide Password Characters On Click – show-password.js

Description:

Yet another show/hide password library that enables you to toggle the visibility of your password on click.

How to use it:

Download and import the main JavaScript file into the html.

<script src="index.js"></script>

Add the data-input-password attribute to your password field.

<input type="password" data-input-password="example">

Create a toggle button to show/hide the password.

<span data-show-password="example">Toggle</span>

Initialize the library and we’re done.

new ShowPasswordManager()

Changelog:

01/10/2019

  • remove: base config file; fix: contructor, readme

You Might Be Interested In:


Leave a Reply