LearningWebAppDev
LearningWebAppDev copied to clipboard
Page 117 jQuery Generalizations
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.