I think this *should* be made much easier and more explicit.
Until that happens, this works for me:
var nIndex=$("#accordion h3").index($("#accordion h3.ui-state-
active"));
On Oct 29, 9:38 pm, Eloid <[email protected]> wrote:
> hi all. Sorry, my english is not good as such.
> I'm using JQuery 1.3.2 and JQuery ui 1.7.2
> I want to get current status of the accordian tabs.
>
> using this code
> var acc = $('#accordion').accordion('option', 'active');
> but only return null.
>
> initializing this code
> $("#accordion").accordion({ active: 1 });
> after other tab clicked. but only return value "1"
>
> I know want to currently changing tab status.
> for example. If I clicked "tab1" result is "you are clicked tab1"
>
> How do I get currently activate tab status?
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.