39,085
社区成员
发帖
与我相关
我的任务
分享
update param Update the specified tab panel, the param parameter contains two properties:
tab: the tab panel to be updated.
type: the updating type, available values are: 'header','body','all'.
options: the panel options.
Code example:
// update the selected panel with new title and content
var tab = $('#tt').tabs('getSelected'); // get selected panel
$('#tt').tabs('update', {
tab: tab,
options: {
title: 'New Title',
href: 'get_content.php' // the new content URL
}
});
// call 'refresh' method for tab panel to update its content
var tab = $('#tt').tabs('getSelected'); // get selected panel
tab.panel('refresh', 'get_content.php');