I'm not familiar with such attributes,
can someone provide a simple demo?
I need it to be done without any libraries.
I'm not familiar with such attributes,
can someone provide a simple demo?
I need it to be done without any libraries.
Stackoverflow Archive
Hint: Before asking a question, look to Google:
site:stackoverflow.com javascript get selected text within textarea
Returns only relevant material from stackoverflow.com
Alternatively, you can type the same exact thing into your address bar following a ? to go to the first result. Give it a shot, type the following into your Firefox address bar:
?site:stackoverflow.com javascript get selected text within textarea