This is a seemlingly simple question, but I’m wracking my brain trying to figure this one out.
I have a JQuery accordion on my page.
I’m writing a client-side script to find a specific node based on a parameter passed through a querystring. This code finds me the specific node in the accordion:
$('.accordion').find('.nodeclass');
Question – how do I deactivate all the other nodes in the accordion and expand only the one passed through the querystring parameter?
If you need to close all the nodes of the accordion (i’m guessing here) you need and then open only one you must do
where
idxofaccordionis the index (0 based) of the accordion you want to open. In the demo page look under “methods” for reference.You could also try to select just one without clasing all the panels before, it might work