Possible Duplicate:
How to get selected text in textarea?
Are there any cross browser way to get just the selected text in a textarea? By selected I mean the usual, when user clicks mouse down and drags over some text and the text is highlighted to indicate selection.