drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.38k stars 1.62k forks source link

method check() vs. update() #193

Closed logemann closed 9 years ago

logemann commented 10 years ago

Hi,

i have a strange behavior. I want to preselect a checkbox based on db data from REST call.

if i do:

$('#active').iCheck('check');

nothing happens and my checkbox is still unchecked. But when i do:

$('#active').attr("checked", active).iCheck("update");

everything is fine. But this is somehow strange to me. Can anyone point me to the right direction?

thanks

drgullin commented 9 years ago

No demo - no honey, sorry.