Example 1 — Official: find → end → find
Style two nested searches from the same list root (jQuery API idea).
$("ul.first")
.find(".foo").append(" [foo]")
.end()
.find(".bar").append(" [bar]"); How It Works
- Root. Start at
ul.first. - Find foo. Mark matching items inside that list.
- end. Pop back to
ul.first.

