Function Description
Takes two parameters. Sets the selected element class to the value given. Sets UPJSObject class to the value given.
Function prototype
_.setClass(element,className). Sets the class of @element or UPJSObject to the @className.
Function parameters
@element - dom element
@name - class attribute name
Sample HTML DIV element is given to try UPJS function.
Orange DIV
Apple DIV
  • apple 1
  • apple 2
Code area to try out setClass,_.setClass function.