I have few text fields like SSN , phone number and email id. I would like to do something like onfocus it should display the whole content of that input box and on blur it should mask the content back to something (say asterix).Thanks in advance
Share
You could switch the type of the
<input>element betweenpasswordandtextin both events. See this example fiddle.HTML
JS