EDIT:
$('.edit').click(function(){
//each time an edit class is clicked, show its associated hide div
var aNum = $(this).attr('id');
//get the number at the end of the ID of this particular edit div
aNum=(aNum.substring(aNum.indexOf('_')+1, aNum.length));
//select and show the associated hide_1 div
$('.hide').hide();
$('.edit').show();
$('#hide_'+aNum).show();
//hide $(this)
$(this).hide();
$(".content").slideUp();
$(this).parent().next(".content").slideDown();
});
с помощью jammypeach здесь (/6701027/jquery-naiti-neskolko-svyazannyh-klassov-ispolzuya-poslednyy-tsifru-klassa) Я создал этот код, чтобы делать то, что я хочу. Он работает с любым div, и в отличие от большинства аккордеонов, он позволяет мнечтобы между ними не было элементов div, которые не являются частью аккордеона, а не ломаются.