using css/javascript to hide input
Posted: Thu Apr 09, 2009 1:06 am
I have a few password fields on a site I am working that *should* be hidden from view while typing just like a password field. However, when the forms are submitted the browser wants to save this password (not the site login password) as my login password.
This is very frustrating!
So I guess I kind of need a psuedo-password input field that will be type="text" with some accompanying css/javascript to make it seem like a password field.
Is this easily accomplishable?
The only thing I can think of is using javascript to fill a hidden input field with the real value and replacing the input fields value with asterisks... which seems like a very ugly solution.
If it can be done with css.... that would be awesome.
Anybody done anything like this?
This is very frustrating!
So I guess I kind of need a psuedo-password input field that will be type="text" with some accompanying css/javascript to make it seem like a password field.
Is this easily accomplishable?
The only thing I can think of is using javascript to fill a hidden input field with the real value and replacing the input fields value with asterisks... which seems like a very ugly solution.
If it can be done with css.... that would be awesome.
Anybody done anything like this?