How to set labels inside textfields for username and password like facebook?
Posted
by NAVEED
on Stack Overflow
See other posts from Stack Overflow
or by NAVEED
Published on 2010-03-29T08:02:29Z
Indexed on
2010/03/29
8:03 UTC
Read the original article
Hit count: 319
I have a login form for my website. This login form have two text fields, username and password. Currently I am placing labels(username, password) just before textfields. But now I want to removed these two labels and want to show text(username, password) inside textfield. When user focuses on these textfields then texts should be removed and user can enter his desired username and password.
I have also noticed that when user open a login form then font color of text(username, password) populated in textfield(username, password) is of diffent color and when user start typing in that field then previous text is removed and new font color is black.
How is it possible?
© Stack Overflow or respective owner