I have some tabs that load ajax content. When I click on the tabs it loads the ajax content perfectly no issues works exactly like it does in the Jqueryui demos.
But when I try and change tab using an onclick function it opens the tab but doesn’t do the ajax. Is this a known issue can it be done?? Do ajax tabs rely on the user clicking the href to know what to load.
This is the code:
$("#signuptabs").tabs();
<div id="signuptabs">
<ul>
<li><a href="type.php"><span>type</span></a></li>
<li><a href="umber.php"><span>CNumber</span></a></li>
<li><a href="vices.php"><span>s</span></a></li>
<li><a href="ups.php"><span>ups</span></a></li>
<li><a href="ext.php"><span>ext</span></a></li>
<li><a href="enu.php"><span>IMenu</span></a></li>
<li><a href="info.php"><span> Information</span></a></li>
</ul>
</div>
$(".step2next").click(function() $('#signuptabs').tabs("select" , 1));
Its won’t load the external content when using the click function.
Jquery UI tabs have a relationship between the link Href and the div id to identify the content of each tab… If your using the regular code provided by Jquery UI, you will need to keep that relationship alive!
If you’ve altered the “standard” way, you need to provide more of your code!
For Ajax Content, using the above Skell, load the content to the proper div ID…
Ps: This is all valid if I’m understanding correctly your question!