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.

Syntax

bapi.helper.getValue(element)

Parameters

element

The HTML DOM element we are trying to retrieve value from.

Return Value

The value of the HTML DOM element.

Example

var elem = document.createElement('INPUT');
elem.value = "This is the value.";

bapi.helper.getValue(elem);

Result

"This is the value."