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

Example that compares using DOM and the getElementById method
Note the difference between input attribute name and id.