Table TD value gets me the TH value also why?

Table TD value gets me the TH value also why?

Hi ,

I was working on the 1.3 jqm table to get TD values, but strangely, I am getting TH along with it? Can you please check on this. 

// sample table
  1. <div id="checkonme" style="display:none;">      
  2. <table data-role="table" id="debug" class="table-stripe ui-responsive table-stroke">
  3.      <thead style="font-size:small;font-weight:bold">
  4.       <tr>
  5.         <th>NickName</th>
  6.       </tr>
  7.     </thead>
  8.     <tbody class="mytbody">
  9. <tr style="font-size:small;" class="myrow">  
  10. <td class="mynickname">Hey Nick</td>
  11. </tr>
  12. </tbody>
  13.     </table>
  14. </div>
and  //script try
  1. $('.mytbody tr').click(function( index ) {
  2. mytest =  trim($(this).find('.mynickname').text()) ; console.log(mytest);
  3. // returns NickName Hey Nick
  4. mytest =  trim($(this).find('.mynickname').htnl()) ; console.log(mytest);
  5. // returns <b class="ui-table-cell-label">NickName</b>Hey Nick
  6. })
Anything I fail to catchup ? 

Regards
Srikrish
"Learning Continues..."