The ui.newHeader is a jQuery object that contains the newly selected header
element. The ui.newContent is a jQuery object that contains the newly
selected content element. Those two together make up the section selected.
See
http://docs.jquery.com/UI/Accordion#event-change
As far as identifying, you could have an id on your header element, then get
it via
var newHeaderId = ui.newHeader.attr("id");
<http://docs.jquery.com/UI/Accordion#event-change>- Richard
On Sat, Aug 1, 2009 at 8:12 AM, Bollard <[email protected]>wrote:
>
> I am trying to write a callback function triggered by
> $('.selector').accordion({
> change: function(event, ui) { ... }
> });
>
> I have not been able to find what comprises the object ui.newHeader.
>
> I am trying to set the value of a variable when the user changes the
> Accordian according to the section selected. I need to identify which
> section has been 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
-~----------~----~----~----~------~----~------~--~---