I think this will do if you use jquery:
$("#idTextarea").focus(function () {
$(this).val("")
});
make sure to have the id in the textarea html code....
Hope it helps it not please provide and example of what you want...
Thanks,
Yannick P.
On Dec 21, 8:09 am, weheh <[email protected]> wrote:
> I have a textarea with some welcoming text already in it, but I'd like
> a javascript to clear the text with when the user sets focus on the
> textarea. The textarea and the rest of my form, of which textarea is a
> part, are created using a custom form that also uses widgets to
> display the form fields. I think I need a custom widget to do what I
> want. I've read the doc but just can't seem to make it work for me.
> I'd appreciate it if someone could show me how to do it. Thx.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en.