How to select this specific td element and its text with Jquery

前端 未结 6 473
温柔的废话
温柔的废话 2020-12-19 18:39

I want to change the \"Yes! Pick me\" into \"Picked\" with Jquery in the following HTML structure, I used $(\'#myDiv>table>tr>td>table>tr\').eq(1).text(

6条回答
  •  不知归路
    2020-12-19 19:25

    Your child selector query won't work because HTML5 requires the parser to insert elements inside your

    elements, since you've forgotten to put them in yourself. Perhaps you should consider validating your HTML?

    提交回复
    热议问题