EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: alfhan on January 21, 2013, 10:28:36 PM



Title: Close all tab
Post by: alfhan 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?


Title: Re: Close all tab
Post by: stworthy 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);
}