I need to get the selected text on a document without using JQuery. Is there a way i can like do document.selectedtext
or something?
Asked
Active
Viewed 49 times
3

user3036528
- 33
- 2
-
Possible duplicate of: http://stackoverflow.com/questions/6251937/how-to-get-selecteduser-highlighted-text-in-contenteditable-element-and-replac – Babblo Nov 26 '13 at 13:09
-
2That uses Jquery. I specifically said no JQuery. – user3036528 Nov 26 '13 at 13:11
-
First and accepted answer doesn't use jquery at all. http://stackoverflow.com/a/6252212/722135 – Babblo Nov 26 '13 at 13:15
-
http://stackoverflow.com/a/8713757/96100 – Tim Down Nov 27 '13 at 09:29