Question:
I have a code below
I have created servicesIcons and assigned string. What I am trying to do is append this string as html to div (
items_group.appendChild(servicesIcons[0])), but it’s not really working. I tried using insertAdjacentHTML but it’s not doing anything.
Answer:
Why are you making life so hard for yourself? It can easily be done like this:
If you have better answer, please add a comment about this, thank you!