i have a menubar and tabs the code like below:
<div id="menu">
<ul>
<li><a href="#"><span>Inspection</span></a></li>
<ul>
<li><a href="#"><span>show tabs1</span></a></li>
<li><a href="#"><span>show tabs2</span></a></li>
</ul>
</ul>
</div>
<div id="tabs">
<ul>
<li><a href="#tabs1">Inspection Report</a></li>
<li><a href="#tabs2">Input Data</a></li>
</ul>
<div id="tabs1">
bla bla bla
</div>
<div id="tabs2">
blah blah blah
</div>
</div>
i have use this code below for selected tabs.
but after i have clicked show tabs1
, actually show tabs2
:
<script>
$(document).ready(function(){
$("#Tabs").tabs();
$("#menu ul li a").each(function(index){
$(this).click(fuction(){
$("#Tabs").tabs("select",index);
});
});
});
</script>