document.getElementById(\'frmMain\').elements
can i use like this
document.getElementByName(\'frmMain\').elements
getElementsByName() method accesses all elements with the
specified name.
this method returns collection of elements that is an array.getElementsByTagName() method accesses all elements with the
specified tagname.
this method returns collection of elements that is an array.eg:
This will return a single HTML element and display the value attribute of it.
this will return an array of HTML elements and number of elements that match the name attribute.
Extracted from w3schools.