insertAfter,_.insertAfter

Function Description
Takes two parameters. It insert new element after the selected element or UPJSObject.
Function prototype
_.insertAfter(element,value). Inserts @value after the @element. Inserts @value after 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 insertAfter,_.insertAfter function.