Thursday, 22 August 2013

How do I exclude first ten and last 1 li from hide() jquery

How do I exclude first ten and last 1 li from hide() jquery

So far I've this:
$(".actor ul li").not($(".actor ul li").slice(0,11)).hide();
I also would like to exclude last li from hide(). How would I do that?
obvious answer would be to also show :last. But there should be an elegant
way to do this :)

No comments:

Post a Comment