FIND YOUR NEXT FEW LINES

Results for “Traversal & selection”

Small, practical examples. Search by task or narrow things down below.

96 snippets foundClear filters
jQueryTraversal & selection

Select siblings up to a boundary

jQuery: nextUntil excludes the boundary element itself.

jQuery✓ Tested
jQueryTraversal & selection

Select siblings while excluding the current element

jQuery: siblings selects other children of the same parent.

jQuery✓ Tested
jQueryTraversal & selection

Select the immediately following sibling

jQuery: next does not search beyond the next sibling.

jQuery✓ Tested
jQueryTraversal & selection

Select the immediately preceding sibling

jQuery: prev moves backward by one sibling.

jQuery✓ Tested
JavaScriptArray traversal & selection

Separate a first item from the remaining items

JavaScript: Array destructuring and a rest element produce named pieces of a sequence.

JavaScript✓ Tested
TypeScriptArray traversal & selection

Separate a first item from the remaining items

TypeScript: Array destructuring and a rest element produce named pieces of a sequence.

TypeScript✓ Tested
jQueryTraversal & selection

Filter a selection

Reduce a jQuery selection to elements with a matching class.

jQuery✓ Tested
jQueryTraversal & selection

Find descendants

Select only matching descendants of a jQuery container.

jQuery✓ Tested
jQueryTraversal & selection

Find the nearest matching ancestor

Read a parent row attribute using jQuery closest.

jQuery✓ Tested
jQueryTraversal & selection

Read checked options

Collect checked checkbox values with jQuery map and get.

jQuery✓ Tested
jQueryTraversal & selection

Visit selected elements

Use jQuery each to label every item with its one-based position.

jQuery✓ Tested
PowerShellHashtables & object records

Add a calculated property during selection

PowerShell: A calculated property can derive a value while retaining selected original properties.

PowerShell✓ Tested