I have searched almost whole internet but couldn't able to get a solution about this..
Suppose that we have a div element with some html inside of it. After selecting this tag by its id (or other selectors, whatever) and if I use "innerHTML" method, I lost all html inside of the tag. What can i do to not destroy html parts inside of the tag? I just want to add something "more", not to "destroy all" and then insert something into new instead.
document.getElementById('something').innerHTML = document.getElementById('something').innerHTML + new_html_to_append;
the method above doesn't work for 3rd iteration, or in a for loop so it's useless for me.. i need something fits infinite supplementation.
Thank You!
(I know .append() method but i am not allowed to use JQuery there.)