DHTMLX Docs & Samples Explorer

onButtonClick Event

Event occurs when user clicks button

Parameters of event

  • name - name of related input
myform.attachEvent("onButtonClick", function(id){
     // any custom logic here
  });

Example of init

...
{type: "button", name: "btn2", value: "Submit"}
...