Update: I am sorry for not making it clear - i do not mean getting the text, i meant emulate the effect as if the user had double-clicked on a word in the text area.
Supposed i have a textarea that looks like this:
<textarea id="r">Hello, this is random text. i want to select -> THIS </textarea>
I want to select the last 4 characters of this textarea, preferably w jQuery
How do i do so?