onBeforeSelect

fires before item selection has started

boolean onBeforeSelect(id id,boolean selection);
ididthe id of an item
selectionbooleanreturns the selection status
booleanreturning false will prevent selecting of an item

Example

some.attachEvent("onBeforeSelect", function(id, selection){
  // ... some code here ...
  return true;
});

See also
Back to top