The code you have seems to imply that you're opening/closing tables, not rows. Some html would help, otherwise one has to guess as to the structure.
Possibility ... $(this).siblings(':visible:not(.clickable)').slideUp(); On Oct 19, 7:16 pm, "Rick Faircloth" <[EMAIL PROTECTED]> wrote: > .close an open row, when another row is clicked to open? > It's working great to open rows when they are clicked, but now > I'd like to close the open row upon opening another. > > Rick > > $(document).ready(function() { > > $('div.calendar').find('div.details').hide().end().find('table.clickme').cli > ck(function() { > var answer = $(this).next(); > if (answer.is(':visible')) { > answer.slideUp(); > } else { > answer.slideDown(); > } > }); > > });