Worked a charm! One to remember me thinks. Cheers all,
A On Jan 22, 7:49 pm, Mike Alsup <mal...@gmail.com> wrote: > > I have a link which sits inside atdwithin a tr within a table. What > > I would like to do is find out whichtd(which column) in the table > > this link is within - I need to find the columnindex. > > > Once I have this I can then remove the column from the table. > > > Any ideas on how to do this? I've tried the coreindex- but to no > > avail. > > "index" is the way to go, you just need to be clever. Try something > like this: > > $('a.removeColumn').click(function() { > var $td= $(this).parents('td:first'); > var $tr = $td.parents('tr:first'); > varindex= $tr.children().index($td); > // ... > > });