Replace word in

in

using jquery

前端 未结 8 1803
无人及你
无人及你 2021-01-18 11:54

I have a document with the following structure:

This is some text.

8条回答
  •  北荒
    北荒 (楼主)
    2021-01-18 12:49

    Go a head and try this solution:

    newtext = $("#notice p").text().replace("some", "My"); 
    $("#notice p").text(newtext);
    

提交回复
热议问题