Employee Id | Employee Name | Position | Salary | Gender | Address |
---|---|---|---|---|---|
next page ... | next page ... | next page ... | next page ... | next page ... | next page ... |
EMP0001 | Margaret Martin | Accountant | 56,000 | Female | 1230 North Ave. Dallas, Texas 98551 |
EMP0002 | Martha Raynolds | Secretary | 35,000 | Female | 1900 Dallas Road Dallas, Texas 98554 |
The namedItem(name) method retrieves a node using a name. It first searches for a node with a matching id attribute. If it doesn't find one, it then searches for a Node with a matching name attribute, but only on those elements that are allowed a name attribute. Retrieve the first FORM element and create a HTMLCollection by invoking the elements attribute. The first SELECT element is further retrieved using the elements name attribute since the id attribute doesn't match.