I\'m having some problems with the enter key triggering a refresh of the page whenever there is input in a form.
The following code does not refresh the page if enter is
place : e.preventDefault(); inside the keypress function
e.preventDefault();