You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: