See here http://jsbin.com/osepu/edit
On Mon, Dec 14, 2009 at 9:28 PM, wandrian <mattba...@mac.com> wrote: > Hey folks. > > I am having a selector issue. Wondering if anyone might want to offer > their advice. > > I have a set of container divs. For each of the containers I am trying > to select the *first visible child element* and add a class to it of > first. I have built out an example in jsbin. At the moment my selector > is finding the first child of each div and only adding a class of > first if that div is visible - which is wrong - seems to be doing > things backwards. > > http://jsbin.com/opaze3/edit > > Any advice would be greatly appreciated. > > Cheers, > Matt > -- Andrei Eftimie http://eftimie.com +40 758 833 281 Punct http://designpunct.ro