onChange

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

void onChange(string newv,string oldv);
newv
stringthe new value typed into the field oldv
stringthe initial value in the field

Example

$$("form1").elements["login"].attachEvent("onChange", function(newv, oldv){
    //"login" is name of the 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);
});

Related samples

Details

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

See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.