How to hide input from user inside a textfield I need text inside a textfield FAPI form element to be obscured visually, just like the password field when you type into it.



password FAPI form element does not have proper functionality for what i need, I need textfield functionality but with the ability to hide the input from user.

Is this possible with Drupal 7 FAPI?
You can add a CSS style to implement this.

However, currently, only Chrome supplies "-webkit-text-security" could do this. I find someone has some sample code:   https://jsfiddle.net/estelle/8WpNg/