To get a value of a TD using JQuery

前端 未结 4 633
予麋鹿
予麋鹿 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 06:11

    This will do it for you:

      var r = $("#testing #row2").text();
      alert(r);
    

    In action here for your viewing pleasure.

提交回复
热议问题