Parameters
elementID - The element ID name.
Returns
The input element value.
Syntax
| JavaScript |
|
static GetValue(elementID)
|
Gets the input element value.
Example
| JavaScript |
<body>
<input type="text" id="targetInput">
</body>
// Gets the input element value.
GetValue()
{
targetInput.value = "X";
let result = LJC.GetValue("targetInput");
// result:
// "X";
targetInput.value = "";
result = LJC.GetValue("targetInput");
// result:
// "";
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.