Selecting all text in a textarea is as simple as $ ('theIdOfTheBox').select();

I have written an example that works with any text on the page, inspired by the New York Times' definition widget.


http://scripty.walterdavisstudio.com/lookup

Walter

On May 9, 2011, at 10:33 PM, kstubs wrote:

Can anyone recommend code or library that helps with making text selections? For example, selecting all text in a texarea? Does Prototype help with this at all?

Karl..

--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en .

--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to