html,_.html

Function Description
It has one or two input parameters. For one parameter, it returns html value of an element or UPJSObject. For two parameters, it sets the html value of an element or UPJSObject.
Function prototype
_.html(element, value). If value is defined, it sets the html of @element or UPJSObject to the @value; else, it returns html value of @element.
Function parameters
@element - dom element
@value - string expression for dom or 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 html,_.html function.