fires before item selection is started
id | id | id of item |
selection | boolean | true if the item was selected, false if it was unselected |
boolean | returning false will prevent selecting of an item |
some.attachEvent("onBeforeSelect", function (id, selection){
// ... some code here ...
return true;
});