Possible Duplicate:
Combining jQuery :not and :nth-child selectors
is this possible?
Here is my code:
$("ul#filterlist li:nth-child(3n)").css("marginTop", "0");
If I wanted to apply that to the list, but only to those items VISIBLE in the list (some get hidden, I don't want them counted), how would it be achieved? I was thinking something like:
$("ul#filterlist li:nth-child(3n)").not(":hidden").css("marginTop", "0");
But it won't work. Neither will anything I try with :visible
Any ideas? Thanks.