disclaimer I am not totally sure about the following:
The (line 30 index.html) html attributes, method and action, link the users input to the router, to the handler, to the database query etc.
Do you want the page to refresh when I click submit?
If no - you may have to write a short event listener in the script.js only to include event.preventDefault() on a submit event (even though the "submitting" is already routed directly by the html).
disclaimer I am not totally sure about the following:
The (line 30 index.html) html attributes, method and action, link the users input to the router, to the handler, to the database query etc.
Do you want the page to refresh when I click submit?
If no - you may have to write a short event listener in the script.js only to include event.preventDefault() on a submit event (even though the "submitting" is already routed directly by the html).
=)