change

fires on changing the value of a control

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

Parameters

namestringthe name of a 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