The getElementsByName() method
The
getElementsByName()
method returns a reference to the element by its name:
var names =document.getElementsByName("name");
The
getElementsByName()
method returns a reference to the element by its name:
var names =document.getElementsByName("name");