replaceAfter()

replaceAfter()

is there a function which is like .insertAfter() except that every time it is called it replaces the code it previously inserted