I have the code to append an element to another via classname. It works however it no use as I'm not able to distinguish this appended element from it's parent. It's all under the parents <a href tag.
Is it possible to add an element next to another element so it's within it's own tag hence I can identify it separately?
I'm getting all the parents elements via classname.
const emailElements = document.getElementsByClassName('email');
[...emailElements].map(el => {
const image =
document.createElement('img');
image.setAttribute('src', 'https://i.ibb.co/QbPNFwB/t.jpg');
el.append(image);
});