views:

5

answers:

0

I have an input box where users should enter their email address.

There are no labels in the page so the input box comes up and it says:

"Please enter your email address". When the user clicks on it then the whole thing disappears. I got that working. So far no problem.

I have seen a few sites where the text "Please enter your email address" is preselected all the user has to do start typing. In my case user has to first click on the input box and then the text disappears for the user to type in.

How do I get the default text "Please enter your email address" preselected.

If you are using backup from 37signals then click on "create a new page". It prompts an input box where "enter name of the page" is pre selected.

I guess it must be some kind of JavaScript or css trick. Anyone knows.