Back

.before( content, [content] )

Insert content before each element in the current set

Params

content{Content}Content to be inserted. Existing nodes will be moved instead of duplicated.
content{Content} [optional]Additional args are handled the same as the first, each in turn

Returns

DollarJS (chainable)

Examples

$('p').before('<div class="new-stuff">')