1. You first need to bind to the footable_row_expanded
event
2. Then inside the event, find all rows that are already expanded (other than the row you clicked on)
3. For each row found, call the FooTable function toggleDetail
$('.footable').footable().bind('footable_row_expanded', function(e) { $('.footable tbody tr.footable-detail-show').not(e.row).each(function() { $('.footable').data('footable').toggleDetail(this); }); });