Get second td of tr using jquery

后端 未结 5 2139
攒了一身酷
攒了一身酷 2021-02-12 10:54

I\'m trying to get td values of tr.. but unfortunately it\'s not working.. may be there is something wrong

My html looks like

         


        
5条回答
  •  我寻月下人不归
    2021-02-12 11:22

    Just wanted to point out that if you want some particular value inserted in the cell then do the following (for example if you need to show the text TEST in the table cell):

    $(".dname td:nth-child(n)").text("TEST");

提交回复
热议问题