On Apr 8, 10:00 am, Hamish Campbell <[EMAIL PROTECTED]> wrote: > Here is one way - it will find the header (th) for any cell (td) given > that there are no merged cells and a single header row. > > $('td').click(function(){ > var col = $(this).prevAll().length; > var headerObj = $(this).parents('table').find('th').eq(col); > > // A quick test! > alert("My cell header is called: " + headerObj.text()); > > });
This much neat, thanks. -- <?php echo 'Just another PHP saint'; ?> Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/