Basic list of example code you can copy & paste…
var myElement = document.getElementById("elementId");
var listItems = document.getElementsByTagName("li");
for (var i = 0, ii = listItems.length; i < ii; i++) { alert(listItems[i].nodeName); }
var lists = document.getElementsByTagName("ul"); var secondList = lists[1]; var secondListItems = secondList.getElementsByTagName("li");
<script src="stripy_tables.js" type="text/javascript"></script>
Main Category