可能重複:
Selecting the first 「n」 items with jQuery如何在jquery中選擇div索引小於6的所有div?
如何選擇所有div的小於6 jQuery的一個div指數?
$('div.lt(6)')
這是正確的嗎?
$('div').slice(0,6).animate({ top:newtop2 }, 700)
.removeClass("down").addClass("up");
我試過,但您使用.
代替:
,請嘗試以下它不工作
http://api.jquery.com/lt-selector/ – tuxtimo 2012-08-16 08:49:33