insertBefore,_.insertBefore

Function Description
Takes two parameters. It insert new element before the selected element or UPJSObject.
Function prototype
_.insertBefore(element,value). Inserts @value before the @element. Inserts @value before the UPJSObject.
Function parameters
@element - dom element
@value - dom element
Sample HTML DIV element is given to try UPJS function.
Orange DIV
Apple DIV
  • apple 1
  • apple 2
Code area to try out insertBefore,_.insertBefore function.