views:

346

answers:

2

Hey Everyone

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 :)

Thanks very much.

A: 

Use classes for the section you want to include, and make a more specific CSS selector when initializing the accordion.

Robert Massa
+1  A: 

You can put classes on the things you want to disable.

Then do :

jQuery(".toDisable").live("click", function (){return false;});

or something similar

marcgg
Hi, that does sound good but that also kills the link, is there anyway to just disable sections from being animated by the accordion but keep functionality ?
David
I'd say something like this might work: jQuery(".toDisable").live("click", function (){document.location = this.href;});
marcgg