JQuery UI选项卡获取以前选择的选项卡
答
$('#edit_tabs').tabs( {
selected: 2, // which tab to start on when page loads
select: function(e, ui) {
var t = $(e.target);
alert("selected is " + t.data('selected.tabs'))
// Index of the PREVIOUSLY selected tab
return true;
}
});