Ticket #4576 (closed enhancement: fixed)
Accordion 'Active' property not change'ing
| Reported by: | margustiru | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.8 |
| Component: | ui.accordion | Version: | 1.7.1 |
| Keywords: | accordion active | Cc: | margus.tiru@… |
Description
Seems like accordion property 'Active' is not changing when accordion is changed (another item selected).
// alert($("#accordion").accordion('option','active')); //
returns always the active:index it was set initially! If nothing was set initially, it always returns null.
Code (from downloaded jQuery UI Example Page):
// Accordion $("#accordion").accordion({ header: "h3", active:1, change: function(event, ui) { alert($("#accordion").accordion('option','active')); }}); //Will return always 1
// Accordion $("#accordion").accordion({ header: "h3", change: function(event, ui) { alert($("#accordion").accordion('option','active')); }}); //Will return always null
![(please configure the [header_logo] section in trac.ini)](/chrome/site/nologo.gif)
