You have provided the code which is working, but not the code that is not working.... So I will guess that you are not trying to retrieve the 2nd value from within a callback. I am a beginner and you have to remember that jquery statements run after the page is loaded. which means all values are calculated when the page loads. if you dont put your code within an event or method. chances are you will return an unexpected value. look for and accordion change method to plop your statement into and it should work. like i said i am beginner so i dont know that exact method name for onchange.
On Sep 11, 3:28 pm, Gennady <[email protected]> wrote: > $("#accordion").accordion({ > active: 2 > collapsible: true > > }); > > // getter > var active = $('#accordion').accordion('option', 'active'); > > This code return 2, it's right? > Next, change section manually(or by means of a method activate), but > this code again return 2. > > How it is possible to receive an index of active section? (in Tabs > vidget, for example: .tabs(’option’, ’selected’)). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
