Worked a charm! One to remember me thinks.
Cheers all,
A
On Jan 22, 7:49 pm, Mike Alsup 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
Here's an example using the index() function:
0..
1..
2..
3..
4..
test = $("td.test");
alert( $("tr td").index( test ) )
test = $("td a#linkID").parent();
alert( $("tr td").index( test ) )
On Jan 22, 10:58 am, Aarron wrote:
> Hi there,
>
> I have a link which sits inside a td within
> I have a link which sits inside a td within a tr within a table. What
> I would like to do is find out which td (which column) in the table
> this link is within - I need to find the column index.
>
> Once I have this I can then remove the column from the table.
>
> Any ideas on how to do this?
3 matches
Mail list logo