We often need to get the values out of a form and use those values elsewhere on the same page. This is demonstrated here by taking text out of two fields and writing that text into the page.
JavaScript has not loaded! The form will not work.
How does this work? See notes in the JavaScript file.
Like this? Thank @macloo