V
V
vitya192020-04-15 18:18:31
JavaScript
vitya19, 2020-04-15 18:18:31

How to find all matches and replace them, jquery?

There is a page on html, on this page there are words for example: "test", how to find and replace all these words with others
, for example: "123"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tigran Abrahamyan, 2020-04-15
@vitya19

$('body').html($('body').html().replace('test', '123'));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question