SyntaxFix
Write A Post
Hire A Developer
Questions
Try This
$("#id1 p:contains('dogsss')").replaceWith("dollsss");