Jump to content

Recommended Posts

Posted

Hello, that site says...

 

By default, accordions always keep one section open. To allow for all sections to be be collapsible, set the collapsible option to true. Click on the currently open section to collapse its content pane.

Posted

Thanks, Eric. :)

 

Yes, I saw that and here's what I have in the

:

 

$(function() {

$("#accordion").accordion({

collapsible: true

});

});

 

The result is the first item is open by default. I want them all closed by default.

 

For reference, here's what I'm working on (will style the accordion once I get it working properly): http://tinyurl.com/ylefxty

Posted

I've always used Themeroller in conjunction with jQuery UI - you can tweak the look in your browser, then download the specific package you need. There are pre-rolled themes there too. Once you've done this, it's a simple case of including the stylesheet in your page and making sure the paths are correct.

 

Even if you use themeroller as a starting point, then tweak once it's in place, it's the quickest way to work with jQuery UI, for my money.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...