drgullin / icheck

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

Checking/unchecking via jQuery $('.i-checks').prop('checked', true) fails #298

Open dotnetwise opened 8 years ago

dotnetwise commented 8 years ago

This should work as it the default method of checking an input via jQuery

$('.i-checks').prop('checked', true);//should check it
$('.i-checks').prop('checked', false);//should uncheck it
jhyland87 commented 8 years ago

You have to use the API buddy..

$('input').iCheck('check'); 
$('input').iCheck('uncheck'); 
msmolka commented 8 years ago

it works, just not updating interface. fire $('.i-checks').icheck("updated");

arispujud commented 6 years ago

checked $('#id-checkbox').prop('checked',true).iCheck('update');

unchecked $('#id-checkbox').prop('checked',false).iCheck('update');