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 v2.0.0-beta.2 - Built on 2026-08-22