change

fires on changing the value of a control

void change(string name|id,any new_value){ ... };

Parameters

name|idstringthe name (or id, if the name is not specified) of the Form control
new_valueanya new value set for the control

Example

form.events.on("Change",function(name, new_value){
    // your code here
});

Related samples

Back to top