View Single Post
Old 04-21-2009, 11:49 PM   #10 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

For your latest code, the pTR variable isn't pointing to the table row, but to the label (first row) or td (other rows). It goes up two levels in the DOM tree, your HTML code needs it to traverse back four/three levels to reach the table row.

Quote:
how come you're using the toLowerCase()
It's just to make a consistently cased node name across the various browsers.
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
allworknoplay (04-22-2009)