4

連続する行を非表示にする必要があるアプリを作成しています。現在私はこれを使用しています:

#mytable tr.collpaserow + tr,
#mytable tr.collpaserow + tr + tr,
#mytable tr.collpaserow + tr + tr + tr {
display: none;
}

これにより、最大3つの連続する行を非表示にできます。私が欲しいのは、Jqueryでどの深さに関係なく、すべての可能な連続行を非表示にすることです。

4

1 に答える 1

3

これを試すことができますか?

$(".collpaserow").nextAll().hide();

http://api.jquery.com/nextAll/

于 2012-09-03T23:51:24.640 に答える