I have an element grabbed from document.getElementById('the_id'). How can I get its next sibling and hide it? I tried this but it didn't work:
document.getElementById('the_id')
elem.nextSibling.style.display = 'none';
Firebug error was elem.nextSibling.style is undefined.
elem.nextSibling.style is undefined