[jQuery] Problem when use tab nested tab
I want when I click on parent tab, the first tab in tab child will
be selected. But my code is not right. Can you show me the right
solution? Thanks
This is my code:
$(’#container_parent > ul’).tabs({
fx: { height: ‘toggle’, opacity: ‘toggle’ },
select: function(ui) {
},
show: function(ui) {
switch($(’#container_ parent > ul’).data(’selected.tabs’)) {
case 0:
$(’#container1 > ul’).tabs(’select’, 0);
break;
case 1:
$(’#container2 > ul’).tabs(’select’, 0);
break;
case 2:
$(’#container3 > ul’).tabs(’select’, 0);
break;
}
}
});