Per l'index ma non so quanto possa
essere cross-browser
Codice PHP:
trs[j].onclick=function(){
alert(this.rowIndex);
var _childs= this.getElementsByTagName('td');
for (var k=0;k< _childs.length;k++){
alert(_childs.item(k).firstChild.nodeValue);
}
return false;
}
}
![]()