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 <richard_gor...@verizon.net> 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 web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to