Documentation

onChange

fires when data in the input or related form/toolbar is changed

void onChange(string newv,string oldv){ ... };

Parameters

newvstringthe new value typed into the field
oldvstringthe initial value in the field

Example

$$("form1").elements["login"].attachEvent("onChange", function(newv, oldv){
    //"login" is name of related form field
    webix.message("Value changed from: "+oldv+" to: "+newv);
});    
//or
$$("form1").attachEvent("onChange", function(newv, oldv){
    webix.message("Value changed from: "+oldv+" to: "+newv);
});

Details

The event fires only in case some value is changed by user in browser. If values are set programmatically (with setValues method) the onValues will fire instead.

See also

Back to top