Get second td of tr using jquery

后端 未结 5 2201
攒了一身酷
攒了一身酷 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:13

    Because that is the last child of your you can access it like below,

    jQuery(".dname > td:last-child").text();

提交回复
热议问题