desup
0
Newbie Poster
Recommended Answers
Jump to PostHere's an annotated version to describe what's going on.
var arr = new Array();//arr is an array. arr = document.getElementsByClassName("repestyl2");//whoops, now arr is a DOM node. The array has been discarded. var index = 0;//OK while(index !== arr.length){//arr is a DOM node, which doesn't have a length …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.