drgullin / icheck

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

on function click #400

Closed sabirnoor closed 3 years ago

sabirnoor commented 6 years ago

Hello developer, Hope you are doing well.. i am facing some issue onload icheck click trigger for example:- this is my function and what i am trying to do... function resetfilter() { $('.filtercheckbox').each(function() { var isChecked = $(this).is(':checked'); if(isChecked == true) { $(this).trigger('click')/// this case trigger not working with iCheck. can you suggest me how to execute trigger function onclick=" resetfilter()" this function } }); }

please reply me as soon as possible. thanks regards, sibo (India)

drgullin commented 3 years ago

@sabirnoor you should trigger iCheck methods instead of click https://github.com/dargullin/icheck#methods