javascript thread: Row Index from tbody?
Excellent, this is great, thank you for the demo. I didnt know
parentElement existed, now that I do, I can go back and change some of the
other messy coding I did.
Thanks again...Peter
> Oops. The onclick event should read
> onclick="btnHandler(this);"
>
>
> Try
>
> function btnHandler(o) {
> alert("You clicked the button in row" +
> (o.parentElement.parentElement.rowIndex + 1));
> }
>
>
|





