If on jquery, you can do this:
$('.RowClass').click( function(){ $(this).find(":checkbox").attr("checked","checked");//выделение всех чекбоксов на кликнутом контейнере, снять выделение через removeAttr("checked") });
html doing something like:
... <tr class="RowClass"><td><input type="checkbox"/></td><td></td></tr> ...
You can also not a table a diva or something else. The bottom line is that we hang on elements with a class and on a click we are looking for checkboxes inside it ...
in order to remove / install - complicate the function of a click - add, say, to $ (this) .attr ("state") - the desired state and, depending on it, remove or put checks (do not forget to update the state attribute)
Yes, it is in the current implementation that there will be a feature - when clicking on the checkbox, the click will also work and check all the check boxes. I think you will figure out how to avoid it - there are plenty of options. But if you can not cope, contact, prompt.