Answer the question
In order to leave comments, you need to log in
How to scan the first column of a table?
Hey! There is a table in the first column of which there are values. How can these values be displayed in an alert, for example?
one | text |
2 | text |
3 | text |
<table>
<tr><td>1</td><td>text</td></tr>
<tr><td>2</td><td>text</td></tr>
<tr><td>3</td><td>text</td></tr>
</table>
Answer the question
In order to leave comments, you need to log in
$('table tr').each(function(){
alert($('td:first', this).text());
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question