Core Docs | Additional Modules Docs

Element.prototype.appendBefore


@Description: Appends the element before another DOM element as a sibling
@File: sb.js
@Type: function
@Param: Element, String el Another DOM element reference or a string that can be passed through sb.$ to return a DOM node.
@Example:
//appends myElement to the parent of "#myDiv" as a sibling of "#myDiv" directly before "#myDiv"
myElement.appendBefore('#myDiv');