Hide JQueryUI Accordion Items with View All Option

Posted by Dominic Webb on Stack Overflow See other posts from Stack Overflow or by Dominic Webb
Published on 2010-05-23T12:52:41Z Indexed on 2010/05/23 13:01 UTC
Read the original article Hit count: 208

Filed under:

I have a JqueryUi Accordion that is dynamically generated. However I need it to show only the first 8 items with the rest viewable by clicking a "View All" link.

The code is simply a series of:

<h2>Title</h2>
<div>....</div>

The jquery is all of:

$(function() {
    $("#sidebar").accordion({autoHeight: false});
});

Thanks

© Stack Overflow or respective owner

Related posts about jquery-ui