I want to change โYes! Pick meโ to โPickedโ with jQuery in the following HTML structure, I used $('#myDiv>table>tr>td>table>tr').eq(1).text("Picked"); But he did not work. Can someone shed some light on this, please? Thanks!
FYI, the first td of the first table contains another table ...
<div id="myDiv"> <table> <tr> <td> <table> <tr> <td>Yes! Pick me!</td> <td>Not me..</td> </tr> <tr> <td>Not me..</td> </tr> </table> </td> <td>Not me..</td> </tr> <tr> <td>Not me..</td> </tr> </table> </div>
Section $('#myDiv>table>tr>td>table>tr>td').eq(1).text("Picked"); does the trick, I forgot the last part of td. Thanks to Rocket and everyone helps.
source share