Simplify javascript password show/hide function – Jquery
I have 3 different password input as: --Current Password Input <input asp-for="ChangePassword.OldPassword" class="form-control" id="currentPassword" required autofocus /> <button class="btn btn-light shadow-none ms-0" type="button" id="toggleCurrentPassword" tabindex="99"><i class="mdi mdi-eye-outline"></i></button> --New password input <input asp-for="ChangePassword.NewPassword" class="form-control" id="newPassword" required autofocus /> <button class="btn btn-light…