I have the following html code:
Try this
$(document).ready(function () { $("#ckbCheckAll").click(function () { $("#checkBoxes input").prop('checked', $(this).prop('checked')); }); });
That should do it :)