I want to enable changing checkbox only if some conditions are respected.
In my example,
when checking the checkbox,
it the country is ‘China’, i can check it and uncheck it : it’s correct
it the country is ‘China2’, i want to reject enabling it, so i show an alert (it’s ok), but the return false; don’t work : the checkbox is checked
I must do something wrong, any idea ?