bonze .set(fn)
Morph the current element collection. The callback receives the elements array and must return something $() can wrap.
Slice a collection
Use .set() to derive a sub-array from the current elements.
item-0
item-1
item-2
item-3
item-4
item-5
// click a button
Replace with a different selection
Start from one group, then morph the selection to a completely different set of elements.
#set2-a
A-1
A-2
A-3
#set2-b
B-1
B-2
B-3
// click a button
Derive parent elements
Collect the unique parent nodes of the current selection.
item-1a
item-1b
item-2a
item-2b
// click a button