Key points to remember:

• Add the watermark BY JS, as you'll be removing it by JS
• Observe the focus event, not the click event
• Only remove the contents in there IF it is the watermark
   (and make sure your watermark wouldn't make a valid input text
   for the field, too).
• Make sure you remove the watermark pre-submit as well, otherwise
   you'll detect it as invalid (or even valid!) input, instead of
   lack of input.

-- 
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to