to alert the text value of each td
Copy code
- $('table tr td').each(function(){
- var texto = $(this).text();
- });
if you want the value of the first row second column, otherwise known as row 1 cell 2 or position(1,2),
Copy code
- var texto = $('table tr:nth-child(1) td:nth-child(2)').text()
没有评论:
发表评论