8

Possible Duplicates:
jQuery get textarea text
How to get selected text in textarea?

So I want to get the text selected within textarea. val() returns entire text so that's no good.

Community
  • 1
  • 1
A-OK
  • 3,184
  • 10
  • 34
  • 42

1 Answers1

6

The field selection jQuery plugin should provide what you requested

BenMorel
  • 34,448
  • 50
  • 182
  • 322
  • this link doesn't exist anymore. – Stefan Nov 05 '12 at 18:19
  • 1
    Indeed, it looks like the jQuery plugins website is down for some time. I think this [GitHub repo](https://github.com/localhost/jquery-fieldselection) has the original code, though. – BenMorel Nov 05 '12 at 22:25