1.4.2 breaks selection

1.4.2 breaks selection

Hi,

I have the following that works in jquery 1.3.2, but is not working in 1.4.2.

  1.     $(document).ready(function() {
  2.         $("#selectAll").click(function() {
  3.             if($("#selectAll").is(":checked")) {
  4.                 $("#checkboxColumn :checkbox:enabled").attr("checked",true);
  5.             }
  6.             else {
  7.                 $("#checkboxColumn :checkbox:enabled").attr("checked",false);
  8.             }
  9.         });


The html page is like the following:

  1. <table>
  2.   <tr><td><span id="checkboxColumn"><input type="checkbox" ... /></span></td></tr>
  3.   <tr><td><span id="checkboxColumn"><input type="checkbox" ... /></span></td></tr>
  4.   <tr><td><span id="checkboxColumn"><input type="checkbox" ... /></span></td></tr>
  5.   ...
  6. </table>


The expression $("#checkboxColumn :checkbox:enabled") would select all the checkboxes with 1.3.2.
But with 1.4.2 only the first checkbox got selected.

Is there something illegal in the html? I inherited these codes. I would have place the id="checkboxColumn" at the <table> level, and I would select based on class rather than id as well.

Thanks in advance,
Yee