I know either we need to change the default or change the docs...

Below is from the http://jqueryui.com/demos/accordion/

Make the selected elements Accordion widgets. Semantic requirements:

The markup of your accordion container needs pairs of headers and content
panels. By default, the header elements are anchors, assuming the following
structure:

<div id="accordion">
    <a href="#">First header</a>
    <div>First content</div>
    <a href="#">Second header</a>
    <div>Second content</div>
</div>


On Sun, Jul 12, 2009 at 8:02 AM, Charlie <[email protected]> wrote:

>  my bad,,,,wrap your <a> tags in <h3>......is default header, works fine.
> There's also an option to change tag of the header also within accordion
> constructor
>
>
> Nathan Maves wrote:
>
> If you actually looked at the result you would see that it is working with
> the formatting just messed up.  That site actually places your code at the
> end of the DOM.  Just to be sure I updated the code.
>  http://jsbin.com/efiya
>
> On Sun, Jul 12, 2009 at 7:28 AM, Charlie <[email protected]> wrote:
>
>> you aren't using $(document).ready
>>
>> it's not working because function can fire before the elements are
>> available....end result....Nothing
>>
>>
>> Nathan Maves wrote:
>>
>> Base on the docs at http://jqueryui.com/demos/accordion/
>>  why does the following not work?
>>
>>  http://jsbin.com/ocava
>>
>>  I am also seeing conflicting code on the examples page.  Where the
>> header parameter is not given yet the following works..
>>
>>  <div id="accordion">
>>  <h3><a href="#">Section 1</a></h3>
>>  <div>
>>  <p>
>>  Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
>>  ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
>>  amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
>> ut
>>  odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
>> vulputate.
>>  </p>
>>  </div>
>> </div>
>>
>>  What is the real format to use with the accordion plugin.
>>
>>  nathan
>>
>>
>>
>>
>>
>>
>
>
>
>
> >
>

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