DHTMLX Docs & Samples Explorer

detachEvent(evId)

Removes an event handler attached through attachEvent() method.

Parameters:

  • evId - the event id.
var myEvent = myForm.attachEvent("onChange", function (){
    //event handler code
})
..
myForm.detachEvent(myEvent);

See also: