I am creating a website of floating width. The users use screens from full HD resolution to some 600px on smart phones it seems a pretty good idea. This brings up a very int
wouldn't swapping innerHTML also work?
var myList = document.getElementsByTagName("ul")[0]; temp = myList.getElementsByTagName("li")[0].innerHTML; myList.getElementsByTagName("li")[0].innerHTML = myList.getElementsByTagName("li")[1].innerHTML; myList.getElementsByTagName("li")[1].innerHTML = temp;