var rowCount = $('.destination tr').length;
for(var i = 1; i > rowCount; i++){
alert(i);
var continent = $('.destination').find('tr:nth-child('+i+')').find('td:nth-child(1)').text();
var country = $('.destination').find('tr:nth-child('+ i +')').find('td:nth-child(2)').text();
var city = $('.destination').find('tr:nth-child('+ i +')').find('td:nth-child(3)').text();
//alert(rowCount[i]);
}
This is from a code of my table i want to get the value of each td in each row like this but it is returning nothing it is not alerting i
is something wrong here.any idea is a appreciated