EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 13, 2025, 08:32:46 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Close all panels in an accordion
Pages: [
1
]
« previous
next »
Print
Author
Topic: Close all panels in an accordion (Read 7790 times)
yamilbracho
Jr. Member
Posts: 64
Close all panels in an accordion
«
on:
July 14, 2015, 03:16:32 PM »
As the subject, How do I close all the panels in an accordion using javascript ?
TIA,
Yamil
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Close all panels in an accordion
«
Reply #1 on:
July 14, 2015, 06:26:07 PM »
Get all the accordion panels and call 'collapse' method to collapse them.
Code:
var panels = $('#aa').accordion('panels');
$.map(panels, function(p){
p.panel('collapse');
})
Logged
yamilbracho
Jr. Member
Posts: 64
Re: Close all panels in an accordion
«
Reply #2 on:
July 15, 2015, 08:03:53 AM »
It works!!!
Thanks a lot!!!!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...