setValue

sets a new value for the component

void setValue(string value);

Parameters

valuestringa new value for the control

Example

webix.ui({
    view:"combo", id:"combo",
    options:[
        { id:"1", value:"One" },
        { id:"2", value:"Two" }
    ]
});
 
$$("combo").setValue("2");

See also
Back to top