You want what is often called a PlaceHolder.  Nice coverage of it in
the "Learning jQuery" book by Chaffer and Swedberg.  Basically you
want to set a focus handler that notices if the value is your
placeholder text (eg "Day") and sets the text value to "" in that
case. It's nice if your blur handler puts back the placeholder text if
it's still blank.

cheers,
Chuck


> I have a text field which has default value as Day. I want when user
> focus on this text field then it become empty. How can I do this using
> JQuery?

Reply via email to