LearningWebAppDev icon indicating copy to clipboard operation
LearningWebAppDev copied to clipboard

Page 117 jQuery Generalizations

Open kevk88 opened this issue 8 years ago • 0 comments

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.

kevk88 avatar Apr 11 '16 01:04 kevk88