Basic form submit


#1

Why doesnt this work:

Entering anything into the form results in an Uncaught TypeError: Cannot read property 'value' of undefined


#2

Solved, added name field to input and used event.preventDefault(); and event.target.namehere.value;.