Javascript - get all table -> tr values

前端 未结 8 1729
鱼传尺愫
鱼传尺愫 2020-12-28 23:02
8条回答
  •  执念已碎
    2020-12-28 23:27

    If like me you want to get the text from all the first column items in all the tables on the page then use this.

    jQuery('table tr td').each( function( cmp ) { 
        console.log( jQuery(this).text() ); 
    } );
    

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