parent,_.parent

Function Description
Parent is a function that returns parent of an element.
Function prototype
_.parent(element). It returns parent of @element. UPJSObject.parent() returns parent of the UPJSObject.
Function parameters
@element - 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 parent,_.parent function.