jQuery の nextUntil() を使用しようとしていますが、子 div をクリックすると他の親 div が閉じます。nextUntil 関数の前に .not() を使用したかったのです。
子 div を隠して表示する正しい方法を実現しようとしています。ありがとう
$('.content').click(function() {
$(this).not('.head').nextUntil('.content').toggle('slow');
$('.subcontentchild').hide();
return false;
});