>As Blair suggested, :nth-of-type was replaced by :eq, therefore I'm not
sure if that addition in your plugin really provides more value.

I thought the same initially, but when I researched further I found that
:eq() will give us the nth item in the set, but :nth-of-type will give us
the nth of each different type of item in the set.

Example: Our JQuery set contains 3 divs and 3 spans: #div0, #div1, #div2,
#span0, #span1 #span2.
Expected results: eq(1) will give us only div1, but :nth-of-type will give
us div1 and span1.

I hope this illustrates the difference. As far as I can figure, that's how
it's meant to work. That said, I have not found a use for it yet!

George


-- 
View this message in context: 
http://www.nabble.com/nth-of-type-not-working-in-some-cases-tf2356344.html#a6572206
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to