Im having trouble to open a page displaying a specific jquery tab that loads its content via ajax.
The problem is that jquery-ui opens tabs called by external links using the anchor hashtag but a ajax content tab anchor doesn't has one.
Any ideas
Thanks in advance.
Basicaly the same code in the jquery-ui demos
What i want is to have a link in my homepage that will open this other page already displaying tabX
$(document).ready(function() {
$(function() {
$( "#tabs" ).tabs({
ajaxOptions: {
error: function( xhr, status, index, anchor ) {
$( anchor.hash ).html(
"Couldn't load this tab. We'll try to fix this as soon as possible. " +
"If this wouldn't be a demo." );
}
}
});
});
});
<div id="tabs">
<ul>
<li class="tab first_tab"><a id="tab1" href="tab1.html">dit doen we</a></li>
<li class="tab"><a id="tab2" href="tab2.html">disciplines</a></li>
<li class="tab"><a id="tab3" href="tab3.html">cases</a></li>
<li class="tab"><a id="tab4" href="tab4.html">uitgelicht</a></li>
</ul>
</div>