I have a checkbox (a toggle button) on my page and an input field. I want to use the checkbox to specify whether the Input field should be a password field or a normal input field. In other words, I want to give an option on whether the user wants to mask the input field or not.
Any idea how I could achieve this?

