突出显示/选择标签中的文本 [英] Highlight / Select() a text within a Label

查看:176
本文介绍了突出显示/选择标签中的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

是否有任何跨浏览器(IE 7 +,Chrome,FireFox)JavaScript代码可以突出显示/选择带有标签的限定文本.文本(我不想要跨范围的内容,就像在u DB上单击某些文本时选择文本"一样.) br/>
我想在Body Onload中使用它,并通过QueryString获取搜索到的文本,然后搜索Label.text并对其进行Select().
有什么建议吗?

在此先谢谢您.

Hi every one.

Is there any Cross Browser(IE 7+ ,Chrome,FireFox) JavaScript code that can Highlight/Select difined text whitin a label.Text (I dont want something by span, just like Select Text when u DB Click on some text).

I want use it in Body Onload and Get the Searched text by QueryString and then Searched the Label.text and Select() it.
Is there any suggestion?

Thanks in advance.

推荐答案

此处 [
Search here[^]: you may find a jquery widget that does what you want.


这篇关于突出显示/选择标签中的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆