bootstrap-checkbox
bootstrap-checkbox copied to clipboard
How to reset the checkbox
I need to have a reset function to uncheck the bootstrap checkbox check event. If my reset looks like this: var welChild = $('.checkbox-child').removeClass("checked"); var welParent = $('#checkbox-parent').removeClass("checked"); // remove the icon-ok Glyphicons from bootstrap checkbox $('.bootstrap-checkbox i').remove();
After the reset, the user has to double-click the checkbox which was reset from checked to unchecked in order to have it checked again. Any idea how to do the reset correctly? Thanks.