Here's an example in JQuery - we are on 2013 now, but I think this will work in 2010. You could also attach it to .change instead of .click. I tend to find the display text and then walk up to the row. Use the F12 developer tools and investigate the structure of the page with the DOM explorer - that will help you construct your jquery access.
// on edit form, do your hide based on current status to start things off.
// Use the names that show on the form.
// assume all are showing, and checking means to hide
if($('input[title="CHECKBOXDISPLAYNAME"]').is(':checked') ) {
// hide rows
$('nobr:contains("FIELD1DISPLAYNAME")').parents('tr:first').hide();
$('nobr:contains("FIELD2DISPLAYNAME")').parents('tr:first').hide();
} else {
// do something if the checkbox is unchecked.
}
// and then keep it in sync when the checkbox changes.
$('nobr:contains("CHECKBOXDISPLAYNAME")').parents('tr:first').find('input').click (function () {
if ($(this).is(':checked')) {
// hide rows
$('nobr:contains("FIELD1DISPLAYNAME")').parents('tr:first').hide();
$('nobr:contains("FIELD2DISPLAYNAME")').parents('tr:first').hide();
} else {
// show rows
$('nobr:contains("FIELD1DISPLAYNAME")').parents('tr:first').show();
$('nobr:contains("FIELD2DISPLAYNAME")').parents('tr:first').show();
}
});
$(document).ready(function() {
if($('input[title="Checkbox"]').is(':checked') ) {
// hide rows
$('nobr:contains("HideText")').parents('tr:first').hide();
}
$('nobr:contains("Checkbox")').parents('tr:first').find('input').click (function () {
if ($(this).is(':checked')) {
// hide rows
$('nobr:contains("HideText")').parents('tr:first').hide();
} else {
// show rows
$('nobr:contains("HideText")').parents('tr:first').show();
}
});
});