gacky's report
mindia › gacky's report › 単語

.nextAll()

gacky · 2012-03-06 更新 · 履歴(2)

.next()は指定した要素セレクターの次の要素を指定するが
.nextAll()は以降全てに影響する

$("ul li").eq(2).nextAll().hide();
//3番目のli以降の全てのliを隠す

タグ