在使用jQuery Accordion时,在页面上查找字符串(Ctrl + F) [英] Find String on Page (Ctrl+F) when jQuery Accordion in Use
问题描述
div
的搜索字符串。有没有办法让浏览器查找搜索所有 div
s甚至打开它们,如果发现)...我明白为什么这不是微不足道的。搜索将不得不打开 div
s来显示结果,这是不明显的...
如果有是不是一个明显的方式来解决这个问题,这将是编程方式吗?
有什么想法?
COM /问题/ 14778452 /肘节的整手风琴式的功能与 - 链路或按钮>切换整套手风琴功能与链接或按钮
我给了用户一个选项,一起切换手风琴,然后他们可以用Ctrl + F搜索。
I am using jQuery accordion plugin to collapse a large page. It works nicely and is a great way to compact the page but I noticed that when using the Browser search function find (Ctrl+F) it only looks in the open div
for the search string.
Is there a way to get the browser find to search through all the div
s (and maybe even open them if found)... I see why this is not trivial. The search would have to open the div
s to show results and this is not obvious...
If there isn't an obvious way to get around this, what would be the approach to doing this programatically?
Any ideas?
I went with this option, as described elsewhere:
Toggle Entire Accordion Functionality with Link or Button
I give the user an option to toggle the accordion all together and then they can search with Ctrl+F.
这篇关于在使用jQuery Accordion时,在页面上查找字符串(Ctrl + F)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!