Thanks all for the replies. This will help me greatly
On Oct 2, 5:06 pm, Matt Foster <[EMAIL PROTECTED]> wrote: > I like to apply a background image to the input for such cases, that > way the input's value is untouched yet the UI can indicate the purpose > of the field. Also with an image your watermark can be a faded grey, > further indicating its transparent presence. > > On Oct 2, 9:40 am, Christophe Porteneuve <[EMAIL PROTECTED]> wrote: > > > 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---
