I'm using JQuery 1.4.2 for an accordion effect on my website. All but one category start hidden. This works in Chome and recent Firefox, older versions of Safari and all Internet Explorer versions however start with EVERYTHING hidden. Is there an incompatibility with those browsers or is something wrong with my code?
$(document).ready(function() {
$('div.chapter:not(:first)').hide();
$('h2.caption').click(function() {
$('div.chapter:visible').slideUp("slow");
$(this).next().slideDown("slow");
});
return false;
});
Obviously, the chapters' contents are each inside a div.chapter.