开发者

JQuery select between

开发者 https://www.devze.com 2023-01-22 22:13 出处:网络
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 elemen

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

精彩评论

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