Sorry I know this question has probably been asked before, but do you know of any clean ways to style input elements so that the inner text disappears when you click on the input element?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re talking about using the
placeholderattribute. As of HTML5, this is a default attribute of an input text element.For older browsers that don’t support this, you could use the JQuery Watermark plugin – http://code.google.com/p/jquery-watermark/