删除所选文字 [英] remove selected text
本文介绍了删除所选文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在javascript中删除所选文字?
谢谢
How do I remove selected text in javascript?
Thank You
推荐答案
嗨...
>
请再解释一下......你选择了什么?它是一个特定的小部件(texbox,textarea或什么)?
亲切的问候
hi ...
please explain that a bit more ... what do you select? is it a specific widget (texbox, textarea or what)?
kind regards
我需要删除在可编辑div中选择的文本
offer = offer.replace(txt,'''');无效,其中txt是传递的选定文本
i还有其他功能
谢谢
i need to remove a text selected in the editable div
offer=offer.replace(txt,'''');doesnt work where txt is a passed selected text
i have other function for it
thank You
您是否已检索到所选文本?您是否使用范围之类的内容? ...
亲切的问候
do you already have the selected text retrieved? do you use something like ranges for that? ...
kind regards
这篇关于删除所选文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文