I made a script in order to control master & slave checkboxes (automatic checking and unchecking).
Here is my JS :
$(document).ready(function() {
Maybe you just want to check the master checkbox:
$('#myCheck').click(function() { $('.myCheck').attr('checked', false); $(this).attr('checked', true); });
see this fiddle.