I am trying to have a checkbox that checks/unchecks all the other checkboxes.
I am using this code:
$(\"#checkall\").toggle( function () {
You can try with this
$("#checkall").click(function() { $(".kselItems").prop('checked', this.checked); });