Plugin iCheck: How clicking first to check and then remove the tick?

There is a plugin iCheck.
There is an event:
$('.i-checks').on('ifUnchecked', function(event){


The question is, when I want to remove a tick, I want to make means sessions audit (AJAX zaporozan) and if the test is TRUE, then you uncheck if the test is FALSE, the check mark is not removed and give message why.

I scoured the iCheck plugin not found how can I prevent the removal of a tick. Or as software it again to return to on if the result is FALSE ?
March 19th 20 at 08:26
1 answer
March 19th 20 at 08:28
To change the status to "enabled" there is a method .iCheck('check'), as is available described on the plugin page.
not the case if I do so:
VISUALLY the check mark is not put. - Cecilia_Nicol commented on March 19th 20 at 08:31
@Cecilia_Nicol, try iCheck('check').iCheck('update') - Jolie.Romaguera commented on March 19th 20 at 08:34

Find more questions by tags JavaScript