How to select a table column with jQuery

后端 未结 3 2047
一个人的身影
一个人的身影 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:42

    This seems to work using the back tick as opposed to a single quote:

    $(`table tr td:nth-child(${ownerIndex})`)
    

提交回复
热议问题