How to access the currently highlighted text within a <textarea> in Javascript

后端 未结 0 597
有刺的猬
有刺的猬 2021-01-24 06:10

The user will enter text into a HTML textarea on the page. When they highlight part of that text, how can I access the highlighted string? Are there any events triggered by high

相关标签:
回答
  • 消灭零回复
提交回复
热议问题