The getValue()
method returns the value of the specified HTML DOM element. If the element has no value attribute will return the innerHtml of this element.
bapi.helper.getValue(element)
element
The HTML DOM element we are trying to retrieve value from.
The value of the HTML DOM element.
var elem = document.createElement('INPUT');
elem.value = "This is the value.";
bapi.helper.getValue(elem);
Result
"This is the value."