$("#existcustomers tr").click(function () {
var td1 = $(this).children("td").first().text();
alert(td1);
});
I need the value of td2-td10 as well. I can’t seem to figure out how to accomplish this. I tried using .second() in the same fashion but that seems to be breaking the programming. Does anyone know how this would be accomplished for the following td’s?
To get a specific cell by index, you can use :
To get the first 10 children, use :
If you want to get the content in separate cells of an array, you can do
This makes an array like this :