jQuery-如何从textarea/输入中获取选定的文本? [英] jQuery - How to get selected text from textarea/input?
本文介绍了jQuery-如何从textarea/输入中获取选定的文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Possible Duplicates:
jQuery get textarea text
How to get selected text in textarea?
所以我想在textarea中选择文本. val()返回整个文本,这样不好.
So I want to get the text selected within textarea. val() returns entire text so that's no good.
推荐答案
字段选择 jQuery插件应提供您要求的内容
The field selection jQuery plugin should provide what you requested
这篇关于jQuery-如何从textarea/输入中获取选定的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文