Hello all. I've been doing some googling and looking on these boards, but I can't find an answer that works for me. What I'm trying to do is this...
I have a bunch of accordions, and I can open as many of them as I want at the same time, but when I make a button to close them all, I guess I'm not using the right function to close all open accordion elements. I've tried using:
$('.accordion').accordion('activate', -1); // where 'accordion' is the class name
And I've tried messing around with a bunch of other options that I forget right now, but I was wondering if anyone had any advice? I just want the user to be able to close all open accordion elements with the click of a button. I'm sure there's a tutorial around, I just can't find it. Any help would be appreciated!