Find Table Row Index using jQuery

前端 未结 4 1558
我在风中等你
我在风中等你 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:26

    This is for a checkbox in the table cell, on change:

     var row = $(this).parent().parent();
     var rowIndex = $(row[0].rowIndex);
     console.log(rowIndex);
    

提交回复
热议问题