JavaScript getElementByName doesn’t work

It’s getElementsByName . Note the plural. It returns an array-like NodeList of elements with that name attribute.

Leave a Comment