Here's an example using the index() function: <head> <script src="jquery-1.2.6.js"></script> </head> <body> <table> <tr> <td><a>0..</a></td> <td><a>1..</a></td> <td><a>2..</a></td> <td><a id="linkID">3..</a></td> <td class="test"><a>4..</a></td> </tr> </table> <script> test = $("td.test"); alert( $("tr td").index( test ) )
test = $("td a#linkID").parent(); alert( $("tr td").index( test ) ) </script> </body> On Jan 22, 10:58 am, Aarron <aarron.pain...@gmail.com> wrote: > Hi there, > > 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? I've tried the core index - but to no > avail. > > Thanks!