Loading ...
Sorry, an error occurred while loading the content.

52344YUI Accordion-view: Clicking a span inside the trigger doesn't toggle panel

Expand Messages
  • rolfsf
    Jan 11, 2010
      I'm using Marco's Accordion View widget.

      My basic format is as follows:

      <ul id="myAccordion">
      <div class="myTriggerElement">
      <span class="this">This</span>
      <span class="that">That</span>
      </div >
      <div class="yui-accordion-content">
      <p>content here</p>
      </div >

      Clicking on one of the spans in the trigger element fails to toggle the content panel. Clicking anywhere else in the trigger element works fine.

      How do I enable the toggle behavior when clicking on elements within the trigger element?