Copyright © 2022, ZingHR - A Cnergyis Company.
jQuery(document).ready(function ($) { $("#ShowPasswordChkBox").on("change", function () { (this.checked) ? $('#txtPassword').attr('type', 'text') : $('#txtPassword').attr('type', 'password'); }); $(".showpass").click(function () { $(this).toggleClass("hide-pass"); var input = $('#txtPassword'); if (input.attr("type") == "password") { input.attr("type", "text"); } else { input.attr("type", "password"); } }); });