To get a value of a TD using JQuery

前端 未结 4 601
予麋鹿
予麋鹿 2021-01-12 05:32

I got a very simple Table with only two rows.
I was thinking what is the best way to get the value from the TD with ID \"row2\".

4条回答
  •  囚心锁ツ
    2021-01-12 05:56

    the TD ID is going to be unique be it in any table. It is not right to have two tables with TD ID's same in both tables. Therefore if you feel then append the table id for the TD ID like so: (and then use the answers above)

     
hello
world

does this help?

提交回复
热议问题