onItemClick

fires after the control has been clicked

void onItemClick(string/number id,event e){ ... };

Parameters

idstring/numbercontrol ID
eeventevent object

Example

button.attachEvent("onItemClick", function(id, e){
    // code
});

Details

If a control features several input fields, the ID of a clicked field will be passed into the event.

See also
Back to top