开发者

JQuery select between

I have a JQuery "collection" of li objects (result of applying .filter())...

The collection is named results ... Because of javascript pagination i am trying to find an efficient way to make elements visible from in开发者_运维百科dex x up to index y... This test didnt work

results.find(":lt(5):gt(0)").show();

Iam just trying to find a non loop method.


think i found it..... http://api.jquery.com/slice/


use nextUntil

$(begin).nextUntil(end)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜