Get first cell of row and top cell of column
<p>I have a big table (id=PersonValue) with a top th row of nummeric values and the first cell of every row is a name.
When I click a certain cell in the table I want to retrieve the name in the first cell of that row and the nummeric value in the top cell of that column.</p>

<p>I've found this script to retrieve the name and adjusted it accordingly but it doesn't give me the name.</p>

<pre><code>$('#PersonValue').click(function(){
    var name = $(this).closest('tr').find('td:first').text();
    console.log('Name is '+ name); // returns 'Name is ' while something like 'Name is Niko' is expected

  //var number = ??
});
</code></pre>

<p>And I have no idea on how to get the top cell as you can see in the script.</p>

<p>Any help is much appreciated!</p>
