fires before the data in some input changed ( by user actions )
| name | string | item name |
| old_val | mixed | an existing value |
| new_val | mixed | a new value |
myForm.attachEvent("onBeforeChange", function (name, old_value, new_value){
//your code here
return true;
});
returning "false" from the event handler will cancel the value changing (the onChange event won't be called after this)
Back to top