in
I have a document with the following structure:
This is some text.
Go a head and try this solution:
newtext = $("#notice p").text().replace("some", "My"); $("#notice p").text(newtext);