Skip to content

Instantly share code, notes, and snippets.

@nhunzaker
Created August 6, 2016 14:32
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 nhunzaker/5b6324156afde2bbac5a6763ddc2711c to your computer and use it in GitHub Desktop.
Save nhunzaker/5b6324156afde2bbac5a6763ddc2711c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<p>Create a breakpoint in the event callback defined in the script below this input:</p>
<input type="number" step="0.01" min="0" value="3" />
<p>Now click the number stepper.</p>
<script>
document.querySelector('input').addEventListener('change', function(e) {
// Create a breakpoint here!
console.log(e.target.value);
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment