Retrieving index of Jquery Tabs
- by Kelvin
Hello I am trying to get index of current selected tab. Alert(ui.index) returns "undefined". Any idea why?
thanks
<script>
$(document).ready(function(){
var $tabs = $("#apttabs > ul").tabs();
$tabs.bind('tabsselect', function(event, ui) {
alert(ui.index);
});
});
</script>
<div id="apttabs">
<ul>
…