javascript insert div into another div

Solutions on MaxInterview for javascript insert div into another div by the best coders in the world

showing results for - "javascript insert div into another div"
Arisha
15 Jan 2018
1var div = document.getElementById('myElementID');
2div.innerHTML += "Here is some more data appended";
Lya
17 Jul 2017
1var div = document.getElementsByClassName('bottom-footer');
2    div[0].innerHTML += '<div> <span>  © Copyright 2021 <a href="http://softskills.anohadigital.com/">SOFT-SKILLS</a>. Tous droits réservés. </span> </div>';          
3