javascript TR rowIndex
@March 15, 2008, 1:22 a.m.
rowIndex | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1 |
Read-only | |
Returns a zero-based integer representing the position of the current row among all other tr elements in the entire table. The count is based on the source code order of the tr elements. |
|
Example | |
var whichRow = document.getElementById("myTR").rowIndex; |
|
Value | |
Integer. |
|
Default | |
None. |
Permanent URL:
http://javascript.gakaa.com/tr-rowindex.aspx
Powered by Linode.