buttonClick

fires after a click on a button in a form

void buttonClick(string id,Event e){ ... };

Parameters

idstringthe ID of a clicked button
eEventa native event object

Example

form.events.on("ButtonClick", function(id,e){
    console.log(id);
});

Related samples

Back to top