jQuery UI Accordion Expand/Collapse All
问题 I\'m using the jQuery UI Accordion (which does not allow more than one item open at a time ) on a project. Using accordion is appropriate since I usually do only want one panel open at a time. However, I need to offer an \"Expand All\" link which switches to \"Collapse All\" when clicked. I don\'t want to custom write near-identical accordion functionality around this one requirement, so I\'d like some JS that will achieve this whilst keeping the Accordion component in use. Question: What