There are a piece of code,but can not use tag.
So,how do I get to the 1 2 3 4?
1 2 3 4
Try this
var div = document.getElementById("test"); var spans = div.getElementsByTagName("span"); for(i=0;i