Find Table Row Index using jQuery

前端 未结 4 1560
我在风中等你
我在风中等你 2021-01-04 04:21

I\'m an intermediate user in jQuery. I know to find the rowIndex of a table using jQUery, but my scenario is a different one. My table(GridView) consists of 20 columns and e

4条回答
  •  孤城傲影
    2021-01-04 05:10

    Should be able to just use:

    var rowIndex = $(this).parents("tr:first")[0].rowIndex;
    

提交回复
热议问题