text field / code question?

buffy 21 Sep, 2011
Hi

I am a bit of a novice but hopefully can explain this well enough:

I have a simple text field which has the value 'enter email' within the actually text field. What i would like it to do is for the field to clear when the user clicks on it to enter their email (rather than them having to delete 'enter email' first).

Not sure how to go about that. Any advice would be greatly appreciated.

Thanks in advance.
GreyHead 21 Sep, 2011
Hi buffy,

You can do this with JavaScript - you need to add/remove the labels when the form is loaded and submitted or the input is edited so it takes a bit of coding.

I have a tutorial that you can buy here that shows you how to do this and has script examples.

Bob
This topic is locked and no more replies can be posted.