YUI 3 Selector for multiple class names

css-selectors, yui, yui3

Solution

Based on how CSS selectors work, it should be `.bear, .dog`

Problem

I have a bunch of divs like this: ``` <div class="bear"></div> <div class="dog"></div> ``` How do I get a nodelist that includes all divs with class of bear and dog? I tried: ``` Y.get(".bear .dog").each(function() { }); ``` But it returns null. Anyone have any suggestions? Thanks!

Original source