loop through tables within tables ?

loop through tables within tables ?

Really frustrated with this..

simple table structure ( typical multicolumn ) :-
  1.  <table id='msgpeople' >
  2.      <tr> 
  3.                    <td>
  4.                     <table id='msgrow'>
  5.                         <tr valign="top">
  6.                         <td><input type="hidden" name='hemployee' id='hemployee' value="12" /></td>
  7.                         <td style="width:200px;" name='hname' id='hname'><b>FRED</b></td>
  8.                         <td><input type='checkbox' id='echk' /><br /></td>
  9.                         </tr>
  10.                     </table>
  11.                     </td>
  12.                    <td>
  13.                     <table id='msgrow'>
  14.                         <tr valign="top">
  15.                         <td><input type="hidden" name='hemployee' id='hemployee' value="1" /></td>
  16.                         <td style="width:200px;" name='hname' id='hname'><b>TOM</b></td>
  17.                         <td><input type='checkbox' id='echk' /><br /></td>
  18.                         </tr>
  19.                     </table>
  20.                     </td>
  21. </tr>
  22. <tr> 
  23.                    <td>
  24.                     <table id='msgrow'>
  25.                         <tr valign="top">
  26.                         <td><input type="hidden" name='hemployee' id='hemployee' value="9" /></td>
  27.                         <td style="width:200px;" name='hname' id='hname'><b>JIM</b></td>
  28.                         <td><input type='checkbox' id='echk' /><br /></td>
  29.                         </tr>
  30.                     </table>
  31.                     </td>
  32.                    <td>
  33.                     <table id='msgrow'>
  34.                         <tr valign="top">
  35.                         <td><input type="hidden" name='hemployee' id='hemployee' value="99" /></td>
  36.                         <td style="width:200px;" name='hname' id='hname'><b>LIZ</b></td>
  37.                         <td><input type='checkbox' id='echk' /><br /></td>
  38.                         </tr>
  39.                     </table>
  40.                     </td>
  41. </tr>
  42. </table>
  43.  

I just cant seem to work out how to loop through all the rows and columns to get both the hidden values and whether the checkbox are checked

I'm sure its ultra simple but Ive tried lots of different loop combinations

Anyway help

Thanks