<div id="tabs">
<ul>
<li><a href="index.php?func=repos" title="repos">Repos</a></li>
<li><a href="index.php?func=users" title="users">Users</a></li>
<li><a href="index.php?func=groups" title="groups">Groups</a></li>
</ul>
<div id="tabs-1">
</div>
<div id="tabs-2">
</div>
<div id="tabs-3">
</div>
</div>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script>
var jquery_tabs;
$(function() {
jquery_tabs = $( "#tabs" ).tabs();
});
function loadCurrentTab(){
var selected = jquery_tabs.tabs('option', 'selected');
jquery_tabs.tabs('load', selected);
return false;
}
</script> |