onclick show password with jquery code example
Example: show password on click button jquery
<div class="signin-form u-password p-relative">
<span class="view-password"><i class="fas fa-eye"></i></span>
<input id="pass" class="pass" type="password" placeholder="Enter your password"/>
</div>
$('.view-password').on('click', function () {
let input = $(this).parent().find(".pass");
input.attr('type', input.attr('type') === 'password' ? 'text' : 'password');
});