JQuery - enable/disable checkboxs per row
<p>I have a query that returns a table list of available services and each table row of returned services has 3 checkboxes- Book, Send Info, No Thanks. </p>

<pre><code>echo '&lt;td align="center"&gt;'.'&lt;input type="checkbox" id="ckBook_'.$i.'"  name="ckBook['.$i.']"&gt;&lt;/input&gt;'.'&lt;/td&gt;';
echo '&lt;td align="center"&gt;'.'&lt;input type="checkbox"  id="ckSendInfo_'.$i.'" name="ckSendInfo['.$i.']" class="group1_'.$i.'"&gt;&lt;/input&gt;'.'&lt;/td&gt;';
echo '&lt;td align="center"&gt;'.'&lt;input type="checkbox" id="ckNoThanks_"  name="ckNoThanks['.$i.']" class="group1_'.$i.'"&gt;&lt;/input&gt;'.'&lt;/td&gt;';
</code></pre>

<p>If a user clicks on one of the checkboxes in one of the rows, then the other checkboxes on the same row should be disabled, else they should be enabled.  I've tried using radio buttons, but the Book checkbox is also returning a running total at the bottom and when I use radio buttons it messes up the totaling function.</p>

<p>I've researched and think I'm pretty close to the solution. I modified some code I found on this site, but it currently only affects the second and third column when the first column check box (of any row) is selected. </p>

<pre><code>$(function() {
 enable_cb();
 $('input[id^=ckBook_]').click(enable_cb);
 $('input[id^=ckSendInfo_]').click(enable_cb);
 $('input[id^=ckNoThanks_]').click(enable_cb);
});

function enable_cb() {
 if (this.checked) 
  {
     $("input.group1_0").attr("disabled", true);
  }   

 else
   {
    $("input.group1_0").removeAttr("disabled");
     $("input.group1_1").removeAttr("disabled");
  }

}
</code></pre>
