Is it possible to use $(someSelector).html('some string'); and not replace the content of this selector but add the 'some string' at the beginning of the content?
Also after I add it is it possible to remove the 'some string' from the “someSelector” html?
Q #1:
jQuery.prepend()accepts an HTML string.Q #2: Yes. One possible option is by using the native
.replace()method.