Created
August 6, 2016 14:32
-
-
Save nhunzaker/5b6324156afde2bbac5a6763ddc2711c 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"> | |
</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