I have some tabs, whose content is being loaded via ajax (setting the
links href to a site). I also have an accordion with two sections
whose contents I want to relate to the active tab.  so If I click the
'about me' tab, for example, the accordion might show a list of my
favorite foods, or something similar.

my current setup is this: each tab has in some divs, one for each
dynamic tab.  the divs in the tab have a unique id, so I need to use
jquery to, once the tab is changed and the content is loaded, to
remove the divs from the tab, and then insert there contents into the
accordion.

right now, I have a function that is connected to the tabs 'load'
event. the function just generates an alert with id of the active tabs
content div.
basically this:
<code>
function switchSideBarContexts () {
    alert($("ul.ui-tabs-nav li.ui-state-hover a").attr("href"));
}
</code>

but I have no idea what to do next, or if I am even going in the right
direction, ideally, this is a lot easier than I am making it.

can someone help?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to