Here Mudassar Ahmed Khan has explained with an example, how to change TextBox TextMode to Password using JavaScript.
The TextMode of a TextBox is decided by its Type attribute i.e. text or password.
HTML does not allow the Type attribute to be modified with JavaScript at runtime and hence the same can be achieved by creating a dynamic TextBox next to the Password TextBox and hiding the Password TextBox.
↧