如何在TextBox或TextArea中获取选定的文本?

如何在TextBox或TextArea中获取选定的文本?

问题描述:

亲爱的朋友们
我有1个文本框或TextArea,我想在其中通知有关选定的文本并获取文本; ???
JavaScript具有此功能吗?

Hi Dear my Friends
i have 1 textbox or TextArea and i want to Inform About Selected Text in its and Get The Text;???
JavaScript Has This Function?

Try
http://curiositybeyondcontrol.blogspot.in/2012/04/get-selected-text-from-text-box-using.html [ http://www.tek-tips.com/viewthread.cfm?qid=1209522 [ ^ ]需要处理的事情(尽管不是确切的解决方案).
Try
http://curiositybeyondcontrol.blogspot.in/2012/04/get-selected-text-from-text-box-using.html[^].

You can also visit http://www.tek-tips.com/viewthread.cfm?qid=1209522[^] which gives you something to work on (although not the exact solution).