Editor / DOM Helper / setInputValue
Function: setInputValue()
ts
function setInputValue(selector, val): void;Sets the value of an input element.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| The selector for the input element. |
|
| The value to set. |
Returns
void
Example
ts
setInputValue('$input-id', 'new value');