<ul id="act"> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> <li>6</li> </ul> <script type="text/javascript"> var ul = document.getElementById('act'); ul.insertBefore(ul.children[1],ul.children[0]) </script>