Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul>
- <li>Item 1</li>
- <li>Item 2
- <ul>
- <li>Item 2.1</li>
- <li>Item 2.2</li>
- </ul>
- </li>
- <li>Item 3</li>
- </ul>
- $("ul > li").addClass("blah");
- $("ul li").addClass("blah");
- #foo > * > * > .bar
- $(".testit > a") //match the first <a> tag below
- $(".testit a") // matches all <a> tag below
- <p class="testit">
- <a href="#">All the rules will match this</a>
- <span>
- <a href="#">second rule can only select this</a>
- </span>
- </p>
Add Comment
Please, Sign In to add comment