Toggling visibility of password fields with custom jQuery code
Getting ready
To get ready, we need to be aware of several jQuery functions that we will use in this recipe. They are on()
, text()
, attr()
, and parent()
. In-depth documentation is available at
https://api.jquery.com/.
We also need to be aware of how input add-ons and input add-on buttons are used in Bootstrap 4. For information on this subject, visit the Button add-ons section on input-groups in Bootstrap 4, available at...