Why doesn't this checkbox in bootstrap module work?
I use this code to make it work, but still has problems
documentBody.on('click','.checkInp',null,function(e) { var checkbox = $(this).find(":checkbox"), checked = checkbox.is(":checked"); checkbox.prop("checked", !checked); }); documentBody.on('click','.checkInp :checkbox',null,function(e) { $(this).parent('span').trigger('click'); });
when I click on it, there is no check if it is unchecked or it doesnβt uncheck the box when it is checked? but if I clicked the span area, then this flag is marked as a checkmark or uncheck
here is my fiddle
source share