Use this code to replace
$(function() {
        var index = 0;
        $(document).ready(function(){
            index = $("#accordion h3").length - 1;
        });
        $("#accordion").accordion({active:index});
    });

2009/12/17 Bob Eastbrook <[email protected]>

> On Thu, Dec 10, 2009 at 3:14 AM, Richard D. Worth <[email protected]>
> wrote:
>
> > The h3 isn't the last child. It's followed by a div.
> >
> > - Richard
>
>
> Ah, good point!  I still can't quite get it though.  Shouldn't this work?
>
> $("#accordion").accordion({ active: "#accordion h3:last-child div" });
>
> Bob
>
> --
>
> 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]<jquery-ui%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/jquery-ui?hl=en.
>
>
>

--

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