cbandes,

i'm sure you have figured this out, but i haven't seen the answer
elsewhere in the list.

here's the relevant jQuery UI Accordion code block:
if (!this.element.hasClass("ui-accordion")) {
  this.element.addClass("ui-accordion");
  $('<span class="ui-accordion-left"/
>').insertBefore(options.headers);
  $('<span class="ui-accordion-right"/>').appendTo(options.headers);
  options.headers.addClass("ui-accordion-header").attr("tabindex",
"0");
}

notice that first line.  That negative is what's keeping the div
from being accordion-ified.  It's being excluded by the class name
on that div elt.

<div role="menu" id="accordion" class="ui-accordion" style="width:
188px">

so remove the class="ui-accordion" attribute, and the rest of them
that start with "ui-"

it looks like the purpose of this is to not accordion-ify things
more than once, but that's not too obvious.  i haven't seen where
the docs say, 'DO NOT PUT IN class="ui-accordion" !!!'

/n


On Aug 27, 8:55 am, cbandes <[EMAIL PROTECTED]> wrote:
> [...]
>
> Note the onclick="$('#accordion').activate('activate','#bb')" in the
> accordion header - I put this there because the top element in the
> accordion isn't responding to clicks when it loads. No idea why. The
> onclick doesn't work either - it never seems to trigger.

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