which tab is active??

which tab is active??

var index = $("#example> ul").activeTab(); is not working

any suggestion??