Last active
June 7, 2018 02:48
-
-
Save blasten/f1c7de9dcffaaf976fca174ea2313937 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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