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