icheck
icheck copied to clipboard
icheckbox_line checkbox are not loading after ajax success call
Hi,
Here is my html which loaded from ajax
<div class="input-group"> <div class="icheck-list"> <label> <input type="checkbox" class="icheck" data-checkbox="icheckbox_line-grey" data-label="Checkbox 1"> </label> <label> <input type="checkbox" checked class="icheck" data-checkbox="icheckbox_line-grey" data-label="Checkbox 2"> </label> <label> <input type="checkbox" class="icheck" data-checkbox="icheckbox_line-grey" data-label="Checkbox 3"> </label> </div> </div>
to solve this i found this
jQuery(document).on('icheck', function(){ jQuery('input[type=checkbox]').iCheck({ checkboxClass: 'icheckbox_square-blue' }); }).trigger('icheck');
But loading inline checkbox
Thanks a lot! Your workaround just helped me to fix a dinamically generated checkboxlist.