If you want to make all the elements inside of hello visible, you need to set the style.display = block the each of them individually. You can do that by using a loop, like this example bellow:
hello
style.display = block
var elements = document.getElementById('hello'); for (i=0; i<elements.children.length; i++) { var child = elements.children[i]; child.style.display = 'block'; }
or if you want this the last one to be visible:
var elements = document.getElementById('hello'); elements.children[elements.children.length-1].style.display = 'block';
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you want to make all the elements inside of
hello
visible, you need to set thestyle.display = block
the each of them individually. You can do that by using a loop, like this example bellow:or if you want this the last one to be visible: