Suppose to have this html code:
<tr id="row_1">
<td>1</td>
<td>Text</tr>
</tr>
<tr id="row_2">
<td>2</td>
<td>home</tr>
</tr>
<tr id="row_n">
<td>n</td>
<td>n row</tr>
</tr>
I need to take only the first td element in a row, so I do:
$('[id^="row_"] > td ').each(function(){
});
But this jquery code it doesn't work because it gets me all first td children of tr but I want only the first td child of tr. Anyone can help?