onBeforeReset

fires before resetting the form

void onBeforeReset(string|number id,object values){ ... };

Parameters

idstring|numberthe form id
valuesobjecta hash of values

Example

myForm.attachEvent("onBeforeReset", function (id, values){
    // your code here
return true;
});

Details

The event is blockable. Returning "false" will prevent form resetting.

Back to top