Can someone shed some light on the behavior of javascript getElementById() when there are elements with duplicate IDs in HTML DOM??
While there is no standard behavior defined, typically it will return the first element found.
Demo: http://jsfiddle.net/ruNKK/
1.4m articles
1.4m replys
5 comments
57.0k users