Skip to content

Instantly share code, notes, and snippets.

@devbyray
Created September 15, 2022 07:36
Show Gist options
  • Save devbyray/1cdea24d5294987ba0ad138139ec2600 to your computer and use it in GitHub Desktop.
Save devbyray/1cdea24d5294987ba0ad138139ec2600 to your computer and use it in GitHub Desktop.
form.addEventListener("submit", function (event) {
//logic for when the form is submitted
event.preventDefault();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment