Re: [jQuery] Checkboxes

2006-09-11 Thread Kevin Scholl
Interesting. So it's not the THEAD/TFOOT, but the TH instead of TD.

Thanks for the insight, Matt! I'll try that out!

Kevin

Matt Grimm wrote:
 Works for me if the checkbox is within a correctly constructed data
 cell:
 
 thead
   trtdinput type=checkbox //td/tr
 /thead
 
 m. 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Kevin Scholl
 Sent: Monday, September 11, 2006 2:26 PM
 To: jQuery Discussion.
 Subject: [jQuery] Checkboxes
 
 Would anyone have any idea why checkboxes within the THEAD and TFOOT of 
 a table would not be recognized up by the following:
 
 $(document).ready(function(){
$([EMAIL PROTECTED]'checkbox']).click(function() {
  // do whatever
  });
}); // end ready function
 
 I'm working on a check/uncheck all script:
 
 http://beta.ksscholl.com/jquery/checkboxes.html
 
 where the checkboxes in the header and footer of the table should 
 select/deselect all the others. If I put those checkboxes into regular 
 TBODY rows, they work fine. But as soon as the THEAD and TFOOT tags are 
 applied, it's as if the script can't even see that they exist (as tested
 
 using simple alerts).
 
 Any ideas?
 
 Thanks,
 Kevin
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Checkboxes

2006-09-11 Thread Kevin Scholl
Actually, have discovered that the problem has nothing at all to do with 
the HTML table structure. Appears to be a conflict with the table 
sorting script that I currently have in place (which will shortly be 
replaced with the excellent JQuery solution from Christian Bach).

Appreciate the look-see, though, Matt!

Kevin

Matt Grimm wrote:
 Works for me if the checkbox is within a correctly constructed data
 cell:
 
 thead
   trtdinput type=checkbox //td/tr
 /thead
 
 m. 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Kevin Scholl
 Sent: Monday, September 11, 2006 2:26 PM
 To: jQuery Discussion.
 Subject: [jQuery] Checkboxes
 
 Would anyone have any idea why checkboxes within the THEAD and TFOOT of 
 a table would not be recognized up by the following:
 
 $(document).ready(function(){
$([EMAIL PROTECTED]'checkbox']).click(function() {
  // do whatever
  });
}); // end ready function
 
 I'm working on a check/uncheck all script:
 
 http://beta.ksscholl.com/jquery/checkboxes.html
 
 where the checkboxes in the header and footer of the table should 
 select/deselect all the others. If I put those checkboxes into regular 
 TBODY rows, they work fine. But as soon as the THEAD and TFOOT tags are 
 applied, it's as if the script can't even see that they exist (as tested
 
 using simple alerts).
 
 Any ideas?
 
 Thanks,
 Kevin
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/