Comment Comment by franciscop Tip: if you input something and press "enter", it will reset the form. You should attach the event listener to the form's onSubmit, and not to the button's onClick. parent franciscop 6 years ago