I have two checkboxes
and
You can bind a change event handler on the checkboxes and based on the value of the changed checkbox, set the value of other checkboxes.
$(function() { $(".checkbox_class").change(function() { var x = this.checked; $(".checkbox_class").prop("checked", x); }); });