MCPcopy
hub / github.com/autoNumeric/autoNumeric / getElementValue

Method getElementValue

src/AutoNumericHelper.js:1264–1270  ·  view source on GitHub ↗

* Retrieve the current element value. * * @param {HTMLElement|HTMLInputElement|EventTarget} element * @returns {string|null}

(element)

Source from the content-addressed store, hash-verified

1262 * @returns {string|null}
1263 */
1264 static getElementValue(element) {
1265 if (element.tagName.toLowerCase() === 'input') {
1266 return element.value;
1267 }
1268
1269 return this.text(element);
1270 }
1271
1272 /**
1273 * Modify the element value directly.

Callers 15

constructorMethod · 0.80
_setElementValueMethod · 0.80
getFormattedMethod · 0.80
_defaultSelectAllMethod · 0.80
selectNumberMethod · 0.80
selectIntegerMethod · 0.80
selectDecimalMethod · 0.80
initMethod · 0.80
formatMethod · 0.80
unformatMethod · 0.80
localizeMethod · 0.80

Calls 1

textMethod · 0.95

Tested by

no test coverage detected