- Fixes problem with the toggle button by adding the attribute
type="button"
to the jQuery version of the script.
- Added script working with jQuery or Cash.
- Fixes the problem that autofill hides the toggle icon.
- Added the
aria-pressed
attribute. - Updated the demos (Bootstrap 4, Bootstrap 5)
- Works with multiple
input[type=password]
. - The
aria-label
of the toggle button can be customized addingdata-show
anddata-hide
attributes to the password input. - The toggle button is added by JavaScript, remove existing
<button>
tags. - The toggle button works more stable.
- The toggle button is always visible.