Recommended Answers
Jump to Posti can't do getElementByName
Don't confuse getElementsByName with getElementByName.
two id's that are the same
At risk of pointing out the obvious, making the id's different would solve the problem. :) You could have one loop generate 'A'+### and the other generate 'B'+###. Of course that is a complete fix …
Jump to PostAlthough ids should always be unique (I believe as stated by the w3c), getElementById does NOT have to be specifically used with just "document". It can be used with any element that has childNodes, as can getElementsByTagName and getElementsByName.
Also in most browsers, getElementsByName only works with some elements. …
All 5 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.