Skip to content

Instantly share code, notes, and snippets.

@blasten
Last active June 7, 2018 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blasten/f1c7de9dcffaaf976fca174ea2313937 to your computer and use it in GitHub Desktop.
Save blasten/f1c7de9dcffaaf976fca174ea2313937 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<style>
input {
display: block;
padding: 20px;
font-size: 30px;
margin: 50px 0;
}
button {
padding: 30px;
}
</style>
<script>
function before(e) {
e.preventDefault();
}
</script>
<form action="" onsubmit="before(event)">
<input type="number">
<input type="number">
<button>Submit</button>
</form>
<form action="">
<input type="number">
<input type="number">
<button>Submit</button>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment