Vote early, vote often! When you help pick the links, you'll like DZone better. Login and vote now.
By mmurph211
via matts411.com
Submitted: Mar 18 2008 / 18:40
Here is a function that when called on a particular HTML element will auto-select all of its inner text. The function works on elements such as INPUT (text), TEXTAREA, DIV, SPAN, TD, and PRE. It is also cross browser compatible.
Add your comment