I am quite new to the use of Javascript. I struggled with the use of Event handlers. I found it hard to make the submit button function the way it should. Even now that I have done it, I still think there is another way/ approach to it.
What is the best approach to doing something like this ? What should I have done differently?