Wow, you had me stumped for a couple of minutes there. :)

I think the .index() method doesn't do what you want it to do.

As I understand it, you use that method on a selection of elements,
pass it an element, and it will search for the element in that
selection.


So if you did

alert($('td', this).index(e.target));

it should return the index you're looking for.



On Apr 13, 8:16 pm, MorningZ <morni...@gmail.com> wrote:
> For the life of me i cannot figure out why this gives me "-1" (not
> found)
>
> $("#Table1 tr.SUM").click(function(e) {
>       alert($(this).index(e.target));
>
> });
>
> With "this" being the row, and "e.target" being the cell, shouldn't
> that work?

Reply via email to