JavaScript Get Next DOM -элемент

document.getElementById('foo2').nextSibling;
Friendly Hawk