I’m trying to write an each function that looks at each list item and then within that item to each span, applying some css to each span uniquely..
When I start to get down into it I get lost and can’t really figure out how to correctly get the unique values to each span within each list item..
http://jsfiddle.net/anthonybruno/9sKNZ/2/
Any ideas?
Edit – I realize that this seems like a job for class names but I have simplified the type of css I am trying to use for this example only. Later on I’ll be passing some more complex css that will rely on other values such as scrollTop and viewportHeight.
First, it will be better if you change your
itemslike following:DEMO 1
If you don’t want to change the
itemsstructure then try this:DEMO 2