YUI 3 Selector for multiple class names
Posted
by Jasie
on Stack Overflow
See other posts from Stack Overflow
or by Jasie
Published on 2009-08-21T19:36:31Z
Indexed on
2010/05/07
4:08 UTC
Read the original article
Hit count: 356
Hello,
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!
© Stack Overflow or respective owner