Referring to this
I am looking to cycle through the nth-child selector, which involves:
var i = 1;
var tmp = $(this).find('td:nth-child(i+1)'); // I wonder how this can be achieved
i++;
I have rows with dynamically generated columns in a grid. My goal is to loop through each cell and store its value along with its ID header. I thought about incrementing the selector in nth-child so that for each iteration, it captures the next grid cell value. Then I could push both the value and ID to an array for future use.
Any assistance would be greatly appreciated.
Thank you.