getClass,_.getClass

Function Description
Returns the given element's class value. Returns the given UPJSObject's class value.
Function prototype
_.getClass(element). Returns value of the class of @element. Returns value of the class of 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 getClass,_.getClass function.