VirtualMV/JavaScript/Forms/getElement

Overview

 * We can simplify getting values from a form using getElementById method.

Refer to: http://www.w3schools.com/jsref/met_doc_getelementbyid.asp

Common error message getElementById (ID)
Error message: File.html:13 Uncaught TypeError: document.getElementByID is not a function

Solution
Something that is really hard to catch is as JavaScript is Case sensitive it is easy to have ID rather than Id.

Note the difference between input attribute name and id.