0

I have tried a few different methods to have the first li of the accordion slider open by default but nothing is working properly.

I have tried to add the class active but it doesn't do anything unless the inline style is set to 686px. If I add that it changes the other images as well.

I'm sure it a simple solution that I am over looking.

http://roofing.kellykruschel.com/

mplungjan
  • 169,008
  • 28
  • 173
  • 236

1 Answers1

0

Use something like this , working FIDDLE

KWICKS 2.0

$('.kwicks').kwicks('expand', 0);

KWICKS 1.5

 $('.kwicks').kwicks({
    size: 321,
    max : 686,
    spacing : 0,
    behavior: 'menu',
    sticky :true
    });
});
rajesh kakawat
  • 10,826
  • 1
  • 21
  • 40
  • Thank you for the quick reply. I updated my code to what you had on Fiddle but when I add $('.kwicks').kwicks('expand', 0); to the javascript area the accordion stops expanding and everything stays collapsed with no javascript errors in the browser. – Kelly Kruschel May 21 '13 at 06:29
  • @Kelly Kruschel sorry my mistake, expand method is supported in 2.0 version whereas sticky is supported in 1.5 kwicks version – rajesh kakawat May 21 '13 at 06:43