There is no "ReplaceTo" method in jQuery. You will need to create your own method.
Appears some simple regex replace would work. Joe On Jan 5, 6:20 am, ranium <ran...@gmail.com> wrote: > Hello. How can I replace some text to another fragment? For example, > if I want to highlight all words ‘the’ with red color, I guess to do > something like that > > $('body').ReplaceTo(‘%the%’, ‘<span style=”background-color: > red;”>the</span>’); > > I can’t do this with standard wrappers built-in on jQuery…