Javascript - get all table -> tr values

前端 未结 8 1748
鱼传尺愫
鱼传尺愫 2020-12-28 23:02
8条回答
  •  渐次进展
    2020-12-28 23:20

    This is a solution in case you are using or plan to use jQuery library.

    Given the email is always in the third row and first column (like in your example) then you can do as follows:

    email = $('table tr:nth-child(3) td:first-child').html();
    

    See working demo

提交回复
热议问题
foo
bar
abc@yahoo.com