prev,_.prev

Function Description
Prev is a function that returns previous dom element of an element.
Function prototype
_.prev(element). It returns previous dom element of @element. UPJSObject.prev() returns previous dom element 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 prev,_.prev function.