By position I mean, how many columns are to the left of the cell and how many rows are on top of it. What I need exactly is two functions:
function FindColPos(element)
{
/* find column position */
return colPos;
}
function FindRowPos(element)
{
/* find row position */
return rowPos;
}
the functions MUST be written that way, I can't add other stuff to my document like ID's since I only have access to the head of the document where I would insert the javascript functions. (All this is part of another project in C#). The element passed to the function would be a cell in a row (a <TD> element) but it would be better if I can pass any element inside the <TD> and the function can recognize the parent <TD>. I'm not advanced enough on javascript to figure it out myself. I actually don't even know if it's possible. Hope you can help.