Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page 117 jQuery Generalizations #76

Open
kkindorf opened this issue Apr 11, 2016 · 0 comments
Open

Page 117 jQuery Generalizations #76

kkindorf opened this issue Apr 11, 2016 · 0 comments

Comments

@kkindorf
Copy link

I noticed what I believe is a typo on page 117 of the text.

`$(".button").on("dblclick", function(){
alert("Hey you double clicked!");

});`

I made a separate html page and created a new JavaScript file in sublime to test the Events and Asynchronicity section of the book. I believe the $(".button") element is actually supposed to be $("button").on()...

After I made the adjustment, the program worked when I double clicked a button on my page.

Hope this helps and if I'm wrong about this please let me know. It's a great book so far, the jQuery section has cleared up alot of problems I've had with understanding jQuery in the past. Even if it is just the basics, its still very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant