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)
精彩评论