Skip to the content.

.before()

Add nodes before each object in a Dabby collection.

.prepend()

Prepend nodes to each object in a Dabby collection.

.append()

Append nodes to each object in a Dabby collection.

.after()

Add nodes after each object in a Dabby collection.

Usage

$(selector).before(...content);
$(selector).prepend(...content);
$(selector).append(...content);
$(selector).after(...content);

…content

One or more arguments containing a node, array of nodes, or a Dabby collection to attach to each item in the target Dabby collection.

Returns

The original Dabby collection.

Differences to jQuery

None.