Skip to main content

getElementValue

Retrieves the value of an element.

note

Should only be used for elements whose text can be updated but doesn't reflect in html markup, such as input[type='text'], input[type='button'], input[type='submit'], textarea. For other elements use getElementText.

getElementValue(elemId)

Parameters#

  • elemId: The target element

Returns#

  • value of the element