Its so plain simple, I can not comprehend, what is the issue? All DOMs are created before I pick them, used either a document.getElementsByClass or just the dom object created itself, not working... I wonder where did I do wrong?
var wrapperDom = document.createElement('div');
wrapperDom.className = 'sticky-state-wrapper';
var containerDom = document.createElement('div');
containerDom.className = 'sticky-state-container';
var targetDom = document.createElement('div');
targetDom.className = 'sticky-state-target';
targetDom.style.height='50px';
targetDom.innerHTML("My Sticky Component");
innerHTML
is not a function... developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML – CrackingtargetDom.innerHTML = "My Sticky Component";
– Humpbacked