EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
November 06, 2025, 01:26:47 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 tab
Pages: [
1
]
« previous
next »
Print
Author
Topic: Close all tab (Read 10954 times)
alfhan
Newbie
Posts: 1
Close all tab
«
on:
January 21, 2013, 10:28:36 PM »
How to close all tab
any close method in tab, but this can close 1 tab by title or index
if any 10 tabs how to close all?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Close all tab
«
Reply #1 on:
January 22, 2013, 09:27:52 AM »
Please try the following code.
Code:
var len = $('#tt').tabs('tabs').length;
for(var i=len-1; i>=0; i--){
$('#tt').tabs('close',i);
}
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...