How do I get current rowindex of a table using Javascript?

后端 未结 3 1374
隐瞒了意图╮
隐瞒了意图╮ 2021-01-21 13:08

Can I get current row index of a table in Javascript and can we remove the row of table with current Index that we got?

3条回答
  •  梦毁少年i
    2021-01-21 13:43

    The rowIndex property returns the position of a row in table

    function myFunction(x) {
      console.log("Row index is: " + x.rowIndex);
    }
    Click to show rowIndex
    Click to show rowIndex
    Click to show rowIndex
    Click to show rowIndex

提交回复
热议问题