Skip to content

Commit 47b86f1

Browse files
Add missing argument to the first keypress callback
This is the same as f928884 but applied to the first example callback.
1 parent d179c41 commit 47b86f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/lesson4/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ The following code allows you to listen for a keypress on the input field, and t
104104

105105
```js
106106
$(document).ready(function() {
107-
$(document).on('keypress', '#username', function() {
107+
$(document).on('keypress', '#username', function(event) {
108108
if (event.which === 13) { // check the key was <enter>
109109
// do something
110110
}

0 commit comments

Comments
 (0)