jquery find and replace in string code example Example: replace jquery $("p:first").replaceWith("Hello world!");