Hi,
I have created a tabs, and try to programmatically navigate to the next tab in my java script function as below, and as soon as it hits that tabs(), it gave me an error: Object [object Object] has no method 'tabs'
<div id="tabTest" class="easyui-tabs" data-options="tabWidth:150,tabHeight:80" style="height:400px">
....
</div>
function MoveToNextTab()
{
try
{
var tab = $('#tabTest').tabs('getSelected');
var index = $('#tabTest').tabs('getTabIndex', tab);
if(index < 5) index++;
else index = 0 ;
$('#tabTest').tabs('setTabIndex', tab); //
? How
}
catch(err)
{
txt = "There was an error on this page.\n\n";
txt += "Error description: " + err.message + "\n\n";
txt += "Click OK to continue.\n\n";
alert(txt);
}
}
And this page has the sample of how to get the tab index.
http://www.jeasyui.com/documentation/tabs.php