使用javascript在textarea中获取单击单词的句子 [英] get the Sentence of a Clicked Word in textarea using javascript
本文介绍了使用javascript在textarea中获取单击单词的句子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用javascript获取单击单词的句子,如下面的链接所示。
http://jsfiddle.net/HKHGQ/103/
但是我希望得到一个单词的句子textarea使用javascript。我怎么能这样做?
没有想到。
谢谢..
Hi,
get the Sentence of a Clicked Word using javascript as in the below link.
http://jsfiddle.net/HKHGQ/103/
but i want to get the Sentence of a Clicked Word in textarea using javascript. how can i do this?
not getting idea.
Thanks..
推荐答案
您好
请参考以下链接。
http://stackoverflow.com/questions/275761/how-to-get-selected-text-from-textbox-control-with-javascript [ ^ ]
这篇关于使用javascript在textarea中获取单击单词的句子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文