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 <baconeater...@gmail.com>

> On Thu, Dec 10, 2009 at 3:14 AM, Richard D. Worth <rdwo...@gmail.com>
> 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 jquery...@googlegroups.com.
> To unsubscribe from this group, send email to
> jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups.com>
> .
> 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 jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to