I am working with a table and i need to work with current and the next row. My function looks like this:
function test(row) {
alert(row.id); //it gives me the current row id, it works.
nextrow = row.nextSibling.nextSibling; //not sure why, but i have to use it twice to get the right one.
alert(nextrow.id); //this gives me the next row's id, also works.
alert(row.id); //this also gives me the next row's id...it should give me the current one.
}
Any ideea if i can store the actual object somewhere so it won't change? Thank you.