Someone suddenly asked me in the group today why the statement $("#MainContent_GridView1").closest("tr").children("td:eq(1)").text() cannot find the value. I asked him whether to take the text of the td of eq(1) under a tr or all of them. He said everything. . . . Then you must loop through all tr and then find td among them. . .
Here I write a simple blog to help those friends who still don’t know how to use jquery selectors.
I simulated a table for your reference. The following is the html structure
1 | 3 | |
33 | ||
111 | 222 | 333 |