How to set table cell value using jquery

后端 未结 5 887
情书的邮戳
情书的邮戳 2021-02-09 18:30

I would like to set the value of all the cells of a table by iterating through them. Ideally I would like to access a Html table like an array i.e. $(\"#tbl\")[row][col]=\

5条回答
  •  故里飘歌
    2021-02-09 18:52

    You can try with this selector $('#myTable tr:nth-child('+row+') td:nth-child('+col'+)').html("sdfasdf");

提交回复
热议问题