UpdateMethod. The param parameter contains two attributes:
[Javascript]View plaincopy
Re: How to make a specific tab in the selected status during Tabs Initialization
$ ('# Tt'). tabs ('update ',{
Tab: $ ('# tt'). tabs ('gettab', 'tab2 '),
Options :{
Selected: true
}
});
Currently, yes is used in my project.
<Div id = "tabs" class = "easyui-tabs" style = "width: 1160px;">
<Div id = "tabs-1" title = "Basic Information" data-options = "fit: true">
<Div id = "tabs-2" title = "bidding information" data-options = "selected: true "> // in this way, a global variable can be saved in the background when the status is selected during loading, and then assigned to the interface. The interface value can be obtained through JS, then add data-options = "selected: true" to the settings"
Function setTab ()
{
Var sTab = $ ("# selectTab"). val ();
If (sTab = "1 "){
$ ("# Tabs"). tabs ("select", 0 );
}
If (sTab = "2 "){
$ ("# Tabs"). tabs ("select", 1 );
// $ ("# Tabs-2"). attr ("data-options", "selected: true ");
}
If (sTab = "3 "){
$ ("# Tabs"). tabs ("select", 2 );
}
If (sTab = "4 "){
$ ("# Tabs"). tabs ("select", 3 );
}
}