Text prefilled but cleared as soon as somebody enters it.

  • Thread starter Thread starter Mufasa
  • Start date Start date
M

Mufasa

I want to have a box filled in with text that when the person clicks in to
it for the first time it will clear. I'd also like to have it ( like to
google search box ) so that it's greyed text when they first see it but as
soon as they go in to it it's normal text.

I assume that what I need to do is check for when the object get's focus and
change it there and put the object in an Ajax Update Panel so it happens
automatically.

Is this correct?

TIA - Jeff.
 
not sure what the update panel is for. this is pretty simple javascript. if
you are using ajax, then look at the watermark control in the optional
control toolkit.

-- bruce (sqlwork.com)
 
Back
Top