Help with enable disable checkboxes using Jquery
<p>I am trying to enable and disable checkboxes based on selection of checkboxes. If you take a look here for a live version of my code
<a href="http://jsfiddle.net/prady/VZ4yW/3/" rel="nofollow">http://jsfiddle.net/prady/VZ4yW/3/</a></p>

<p>What i want is there cannot be 2 checkboxes selected in the same row and there cannot be 2 checkboxes selected in the same column. Looking at the link might give you a clear understanding of what i wanted.</p>

<p>There can be only one checkbox selected in the column "Change this parameter" and "Generate simulated value for this param" but both cant be of the same row.</p>

<p>Just in case you are not able to view the link here is the code</p>

<pre><code>&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Change this parameter&lt;/td&gt;
&lt;td&gt;Generate simulated value for this param&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project cost&lt;/td&gt;
&lt;td&gt;&lt;input type ="text" id ="pc"/&gt;&lt;/td&gt;
&lt;td&gt;&lt;input class="change" type="checkbox" name="chkBox" id="chkBox"&gt;&lt;/input&gt;&lt;/td&gt;
&lt;td&gt;&lt;input class="sim" type="checkbox" name="chkBox1" id="chkBox1"&gt;&lt;/input&gt;&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Avg hours&lt;/td&gt;
&lt;td&gt;&lt;input type ="text" id ="avghrs"/&gt;&lt;/td&gt;
&lt;td&gt;&lt;input class="change" type="checkbox" name="chkBoxa" id="chkBoxa"&gt;&lt;/input&gt;&lt;/td&gt;
&lt;td&gt;&lt;input class="sim" type="checkbox" name="chkBox1a" id="chkBox1a"&gt;&lt;/input&gt;&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project completion date&lt;/td&gt;
&lt;td&gt;&lt;input type ="text" id ="cd"/&gt;&lt;/td&gt;
&lt;td&gt;&lt;input class="change" type="checkbox" name="chkBoxb" id="chkBoxb"&gt;&lt;/input&gt;&lt;/td&gt;
&lt;td&gt;&lt;input class="sim" type="checkbox" name="chkBox1b" id="chkBox1b"&gt;&lt;/input&gt;&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hourly rate&lt;/td&gt;
&lt;td&gt;&lt;input type ="text" id ="hr"/&gt;&lt;/td&gt;
&lt;td&gt;&lt;input class="change" type="checkbox" name="chkBoxc" id="chkBoxc"&gt;&lt;/input&gt;&lt;/td&gt;
&lt;td&gt;&lt;input class="sim" type="checkbox" name="chkBox1c" id="chkBox1c"&gt;&lt;/input&gt;&lt;/td&gt;

&lt;/tr&gt;
&lt;/table&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function(){
$('#chkBox').click(function(){
   var paramChangeBoxes = $('input:checkbox.change');
 if ($(this).is(':checked')) {
  paramChangeBoxes.attr('disabled', 'disabled');
  $('#chkBox1').attr('disabled', 'disabled');
   $('#chkBox').removeAttr('disabled');
 }
 else
 {
  paramChangeBoxes.removeAttr('disabled');
      $('#chkBox1').removeAttr('disabled');
 }
});
$('#chkBoxa').click(function(){
   var paramChangeBoxes = $('input:checkbox.change');
 if ($(this).is(':checked')) {
  paramChangeBoxes.attr('disabled', 'disabled');
  $('#chkBox1a').attr('disabled', 'disabled');
   $('#chkBoxa').removeAttr('disabled');
 }
 else
 {
  paramChangeBoxes.removeAttr('disabled');
      $('#chkBox1a').removeAttr('disabled');
 }
});

$('#chkBoxb').click(function(){
   var paramChangeBoxes = $('input:checkbox.change');
 if ($(this).is(':checked')) {
  paramChangeBoxes.attr('disabled', 'disabled');
  $('#chkBox1b').attr('disabled', 'disabled');
   $('#chkBoxb').removeAttr('disabled');
 }
 else
 {
  paramChangeBoxes.removeAttr('disabled');
      $('#chkBox1b').removeAttr('disabled');
 }
});

$('#chkBoxc').click(function(){
   var paramChangeBoxes = $('input:checkbox.change');
 if ($(this).is(':checked')) {
  paramChangeBoxes.attr('disabled', 'disabled');
  $('#chkBox1c').attr('disabled', 'disabled');
   $('#chkBoxc').removeAttr('disabled');
 }
 else
 {
  paramChangeBoxes.removeAttr('disabled');
      $('#chkBox1c').removeAttr('disabled');
 }
});

$('#chkBox1').click(function(){
   var paramChangeBoxes = $('input:checkbox.sim');
 if ($(this).is(':checked')) {
  paramChangeBoxes.attr('disabled', 'disabled');
  $('#chkBox').attr('disabled', 'disabled');
   $('#chkBox1').removeAttr('disabled');
 }
 else
 {
  paramChangeBoxes.removeAttr('disabled');
      $('#chkBox1').removeAttr('disabled');
       $('#chkBox').removeAttr('disabled');
 }
});

$('#chkBox1a').click(function(){
   var paramChangeBoxes = $('input:checkbox.sim');
 if ($(this).is(':checked')) {
  paramChangeBoxes.attr('disabled', 'disabled');
  $('#chkBoxa').attr('disabled', 'disabled');
   $('#chkBox1a').removeAttr('disabled');
 }
 else
 {
  paramChangeBoxes.removeAttr('disabled');

      $('#chkBox1a').removeAttr('disabled');
       $('#chkBoxa').removeAttr('disabled');

 }
});

$('#chkBox1b').click(function(){
   var paramChangeBoxes = $('input:checkbox.sim');
 if ($(this).is(':checked')) {
  paramChangeBoxes.attr('disabled', 'disabled');
  $('#chkBoxb').attr('disabled', 'disabled');
   $('#chkBox1b').removeAttr('disabled');

 }
 else
 {
  paramChangeBoxes.removeAttr('disabled');

      $('#chkBox1b').removeAttr('disabled');
       $('#chkBoxb').removeAttr('disabled');

 }
});

$('#chkBox1c').click(function(){
   var paramChangeBoxes = $('input:checkbox.sim');
 if ($(this).is(':checked')) {
  paramChangeBoxes.attr('disabled', 'disabled');
  $('#chkBoxc').attr('disabled', 'disabled');
   $('#chkBox1c').removeAttr('disabled');
 }
 else
 {
  paramChangeBoxes.removeAttr('disabled');

      $('#chkBox1c').removeAttr('disabled');
        $('#chkBoxc').removeAttr('disabled');
 }
});



});
&lt;/script&gt;
</code></pre>
