Forum Moderators: open

Message Too Old, No Replies

Javascript to prefill a form

Form is filled, when user clicks, the filler dissapears

         

madmatt69

3:13 am on Dec 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey everyone,

I've been looking around for the javascript which will allow you to take a prefill form element and when the user clicks in it, the text is removed.

So for example for an email signup: I want the input to have "your@email.com" prefilled. When the used clicks it, the text is removed and they type in their info.

Know what I mean?

Anyhow I can't seem to find the script that does this anywhere. If anyone can point me in the right direction, it'd be much appreciated!

encyclo

3:16 am on Dec 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can see a good solution in ths earlier thread (see msg#3167261 by Bernard_Marx):

[webmasterworld.com...]

madmatt69

2:09 am on Dec 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Perfect, thanks :)