Element i have has spaces within the id attribute which is causing the getElementByID() to not work and not be able to capture the element.
If there any workaround i can do in this. Do i have to remove all white spaces in all element ID values i have.
window.addEventListener('DOMContentLoaded', (event) => {
var str=document.getElementById('Monica Finolta Sol ID treReport').id;
alert(str);
})