I need to show only the last four digits of the SSN and mask the rest with asterisks, like: ****-**-7654
Additionally, I want to implement a toggle functionality where users can reveal or hide the masked characters behind the asterisks.
<input type="password" name="password" id="password" />
<i class="bi bi-eye-slash" id="togglePassword"></i>
Could you please assist me in resolving this issue?
Thank you for your help!