- We can simplify getting values from a form using getElementById method.
By the end of this page you will be able to:
Example that compares using DOM and the getElementById method
Common error message getElementById (ID)
Error message: File.html:13 Uncaught TypeError: document.getElementByID is not a function
Note the difference between input attribute name and id.