I would like to get the text from the first and second TD which has the class user and id
<tr class="rowid">
<td class="user">A</td>
<td class="id">B</td>
</tr>
So first i want A and then B I tried
$(document).ready(function(){
$(".rowid").each(function(index, value) {
var test= $(.user).text();
alert(test);
But i get A twice.I want one value at a time. Any ideas what 'm doing wrong? Cheers