How to find all matches and replace them by jquery?

There is a page on the html on this page there are words for example: "test", how to find and replace all these words on the other
for example: "123"?
April 19th 20 at 12:10
1 answer
April 19th 20 at 12:12
$('body').html($('body').html().replace('test', '123'));
so with one word, first, and if they are 10? - Clotilde_Quigley25 commented on April 19th 20 at 12:15
@Clotilde_Quigley25, I don't know what you have there but I have all 10 and even if 100 Grand to write it all find and replace.
- danial commented on April 19th 20 at 12:18

Find more questions by tags jQuery