How to select a table column with jQuery

后端 未结 3 2036
一个人的身影
一个人的身影 2020-12-09 14:42

I want to select a table column and all I know is the header text of the column. (th.innerText)

I tried the following code but it doesn\'t work:

owne         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-09 15:22

    Ok. I found a solution:

    $('table tr td:nth-child('+ownerIndex+')')
    

提交回复
热议问题