Skip to content
chocolateboy edited this page Jun 21, 2020 · 2 revisions

.find(selector)

selector A string containing a selector expression to match elements against.

Get the descendants of each element in the current set of matched elements, filtered by a selector.

.get(index)

index A zero-based integer indicating which element to retrieve.

.get()

Retrieve the DOM element at the specified index, or all elements if no index is provided.

.eq(index)

index A zero-based integer indicating which element to retrieve.

Reduce the set of matched elements to the one at the specified index.

.parent()

This method does not accept any arguments.

Get the parent of each element in the current set of matched elements.

.toArray()

This method does not accept any arguments.

Retrieve all the DOM elements contained in the set of matched elements as an array.

.add(selector)

selector A string representing a selector expression to find additional elements to add to the set of matched elements.

.add(elements)

elements One or more elements to add to the set of matched elements.

.add(html)

html An HTML fragment to add to the set of matched elements.

.add(selection)

selection An existing jBone object to add to the set of matched elements.

.add(selector, context)

selector A string representing a selector expression to find additional elements to add to the set of matched elements.

context The point in the document at which the selector should begin matching; similar to the context argument of the $(selector, context) method.

Create a new jBone object with elements added to the set of matched elements.