Iam trying to get the value in a td while clicking a button in it.
I used the code below and get only blank value.
So i tried to change the css to see whether it selectes the specific td. Then
The issue with the first code example is that the
td:nth-child(8) is not the parent of the element referenced in
To solve this you need to use separate calls to
find(), like this:
Also note that assuming that you only want to find the immediate
tr parent element, you can replace
closest() for slightly improved performance.