title: yui child selector
body: <p>I have a two divs which have class name "container". Each of this divs contain equal no. of children. I want to assign a class to nth child of each container. How can I do this using YUI3</p>
  
  <pre><code>&lt;div class="container"&gt;
    &lt;div class="child"&gt;&lt;/div&gt;
    &lt;div class="child selected"&gt;&lt;/div&gt;
    &lt;div class="child"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="container"&gt;
    &lt;div class="child"&gt;&lt;/div&gt;
    &lt;div class="child selected"&gt;&lt;/div&gt;
    &lt;div class="child"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>