As a beginner with javascript, I am facing an issue with the appendChild method in my code snippet below:
var wrapper = document.getElementsByClassName('innerWrap');
var post = document.createElement('input');
post.style.position = "absolute";
post.style.top = "100px";
document.wrapper.appendChild(post);
I'm wondering why it's not working as expected. Any insights would be greatly appreciated!