You can do this with jQuery. Let's say that your HTML looks like this:
<input type="checkbox" onclick="toggleControls(this)"/>Controls Disabled
<table id="myTable">
<tr>
<td>Name: <input type="text" /></td>
<td>Select: <input type="radio" /></td>
</tr> .....
The toggleControls() function to disable/enable all the controls inside the table (this means all textboxes, buttons, checkboxes, radio buttons and dropdowns) looks like this:
<script>
function toggleControls(e){
$('#myTable input,select,textarea').attr('disabled',e.checked);
}
</script>
jQuery's css selectors make that one line to disable/enable the controls possible. With plain old javascript, the function would look like this:
var myTable = document.getElementById("myTable");
var controls= myTable.getElementsByTagName("input");
// Repeat the previous line for "select" and "textarea"
for(i = 0; i < controls.length; i++) {
control = controls[i];
control.disabled = !control.disabled;
}