I am trying to implement some edit/update functionality in my project and I am having hard time accessing the td's in the pricture below.
Firstly, I am not sure if having a class for each <td> is a good idea at all, but this is how I did it.
On each row I have an edit button, which, when pressed is supposed to get the info for the specific row. With my code this works only for the first row.
I have the following structure in the dom :
I tried to access the <td> elements in this way :
$('#lblEditDeleteProducts .brandDom').eq(0).text();
But the problem is that this always gets the text from the first row and I have many rows.
I also tried this code, which didn't work :
$(this).closest('.nameDom').text()
