Back

.remove( [selector] )

Remove each element in the current set from the document

If a selector is provided, only remove elements that match the new selector

Params

selector{Selector} [optional]A selector expression to match elements against

Returns

DollarJS (chainable)

Examples

$('p').remove('.foo')