I've got some text displaying in a table (oldschool, I know) and I'm trying to identify that specific <td>
element so I can use jQuery to wrap() <a href>
tags around it and convert it to a link.
The problem is, none of the <td>
's in the table have unique classes or ID's, and there will always be an unknown amount of <td>
's before the one I want to access, so I don't think I can use nth of child.
The ONLY unique way that <td>
is identifiable is the <td>
DIRECTLY before it, which will contain some text that will always be the same. Can I use jQuery to find that <td>
based on the text inside it, then target the <td>
directly after that? Or is there a better way to do this?