YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Using query

Clicking the button will add a red border to all of the LI elements with the class of "selected" that live in a UL.

  1. lorem
  2. ipsum
  3. dolor
  4. sit