Skip to content

Editor / DOM Helper / setInputValue

Function: setInputValue()

ts
function setInputValue(selector, val): void;

Sets the value of an input element.

Parameters

ParameterTypeDescription

selector

string

The selector for the input element.

val

string

The value to set.

Returns

void

Example

ts
setInputValue('$input-id', 'new value');

Version v1.33.1 - Built on 2026-03-28