onBeforeCheck

fires before a checkbox is checked in a combo

boolean onBeforeCheck(string|number value,boolean newState){ ... };

Parameters

valuestring|numberoption value
newStatebooleantrue if an item is going to become checked

Returns

booleantrue to allow an item to be checked, otherwise - false

Example

myCombo.attachEvent("onBeforeCheck", function(value, newState){
    // your code here
    return true;
});

Change log

added in version 4.4

Back to top