View Single Post
Old 01-08-2013, 08:32 PM   PM User | #3
dylanbaumannn
Regular Coder

 
Join Date: Feb 2012
Location: Nebraska, USA
Posts: 132
Thanks: 8
Thanked 19 Times in 19 Posts
dylanbaumannn is an unknown quantity at this point
Ah, frameworks are hard :p

Quote:
Originally Posted by VIPStephan View Post
Please tell us about your actual intention because there is definitely some better way to do what you want. Why do you need to add a class “hasItems”? Also, you need to check for the length of the list items (children) of the ol, not the ol itself.

And your fiddle seems to work, by the way, you just need to choose the right framework.
My end intention is to add do an .addclass('NoMarginRight') to every 4th child within the ol.thumbs
dylanbaumannn is offline   Reply With Quote