Teki's blog

Monday, February 23, 2009

IE getElementsByName not working in JavaScript

IE's DOM methods getElementsByName and getElementById are not implemented properly.
So document.getElementsByName returns 0 if you don't have attribute id with same value as in attribute name.


It seems this is fixed in IE8. See demo:

0 Comments:

Post a Comment

<< Home