tags:

views:

66

answers:

2

Should be pretty simple, but I can't seem to find it in Google. Your help is appreciated!

A: 

If I'm not mistaken, you'll want the selectedText javascript attribute. Google has a bevy of information on it.

EvanK
+3  A: 

It depends on the browser, but this approach should cover it.

Jed Schmidt
very nice example!
Dror