replace anchor text with jquery

后端 未结 5 1081
无人共我
无人共我 2020-12-05 16:45

i want to replace the text of a html anchor:

Click to go home

now i want to replace the

5条回答
  •  猫巷女王i
    2020-12-05 17:23

    Try this, in case of id

    $("#YourId").text('Your text');
    

    OR this, in case of class

    $(".YourClassName").text('Your text');
    

提交回复
热议问题