I have a problem with jQuery UI tabs. In details, I have tabs which are loading with ajax and my problem is that i want to load page links inside page but i cannot make it.
This is the code of my page with the tabs:
<script>
$(function() {
$( "#tabs" ).tabs({
ajaxOptions: {
error: function( xhr, status, index, anchor ){
$(anchor.hash).html(
"Could not load this tab");
}
}
});
});
</script>
<div id="tabs">
<ul>
<li><a href="#tabs-1">Welcome</a></li>
<li><a href="customer.php">Customers</a></li>
<li><a href="subscribers.php">Subscribers</a></li>
<li><a href="subscription.php">Subscriptions</a></li>
</ul>
</div>
Let's assume know that i have load the tab subscriptions. The subscription.php has a link to another page which i want to load in the same tab.
How can i make it work?