Can jQery tell me the text of a table header
I got a fast and helpful response to my first query about retrieving text from a table using jQuery, so I'm hoping I can get advice on this too. I am new to jQuery, but can't see an obvious way of doing what I need.
I am showing the user a table in a web page. When the user double clicks on a table element (surrounded by <td> and </td>) I can retrieve the text of that element. What I now want to do is to retrieve the text of the table header (surrounded by <th> and </th>) for the same column.
If this is not easily done, is there a way to retrieve the colum index ? If I know that I am in column 3 then I can look up what the header text will be.