Hi.

First thing first; I LOVE your stuff - it's like magic!

Then the problem... The way the accordion work (correct me if I'm
wrong) is that a header toggles an element. The header option
specifies the element that sould open the proceding div. What I can't
seem to find is how to specify a selector for the element to toggle.

An example is allways nice

js stuff:
jQuery(document).ready(function(){
    jQuery('div.accordion').accordion({
        header: "div.toggle, a.toggle",
        autoHeight: false,
        alwaysOpen: false,
        active: false
    });
});

html:
<div class="accordion">
    <div class="toggle">
        this is clickable
    </div>
    <div>
        this content is showed if "this is clickable" is clicked
    </div>
    ...
    <div class="toggle">
        this too
    </div>
    <div>
        "this too" reveals this...
    </div>
</div>

This works all right, but what should I do if the element to be
toggled is not the first div after the header/toggler? Is there some
hidden magic or a way around it?

Thanks in advance!

Yours sincerely,
Kristoffer

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