I am using a simple jquery code for an accordion and the client wants me to have one of the list items opened when the accordion loads. I know I can look up other accordions that already come this way but this one is very simple and I’d like to keep using it if possible. here’s my code, thanks a lot in advance for any help…
[COLOR=“Gray”]
$(function(){
$(‘ul.expand’).each(function(){
$(‘li.trigger’, this).filter(‘:first’).addClass(‘top’).end().filter(‘:not(.open)’).next().hide();
$(‘li.trigger’, this).click(function(){
if($(this).hasClass(‘open’)) {
return false;
} else {
$(this).parent().find(‘li.trigger’).removeClass(‘open’).next().filter(‘:visible’).slideUp();
$(this).addClass(‘open’).next().slideDown();