Find and replace a string using jQuery

jQuery

Find a string and replace it with the one you need

the “g” modifier performs a global search in RegExp