如何禁用jQuery手风琴的某些链接 [英] how to disable certain links of jquery accordion
本文介绍了如何禁用jQuery手风琴的某些链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前在导航部分上实现了基于jquery的手风琴,但是导航的某些部分不需要成为手风琴的一部分(如果没有类别等),我只是想知道是否可以禁用是否有手风琴的一部分?
I am currently implemented a jquery based accordion on a navigation section, but some parts of the navigation don't need to be part of the accordion (if there are no categories etc) i am just wondering if it is possible to disable parts of the accordion or not ?
我觉得这可能是不可能的,但是此站点之前让我感到惊讶:)
i get the feeling this could be impossible but this site has surprised me before :)
非常感谢.
推荐答案
您可以将类放在要禁用的内容上.
You can put classes on the things you want to disable.
然后做:
jQuery(".toDisable").live("click", function (){return false;});
或类似的东西
这篇关于如何禁用jQuery手风琴的某些链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文