Text prefilled but cleared as soon as somebody enters it.

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.
 
B

bruce barker (sqlwork.com)

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top