Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMax Bulygin
5,601 Pointson double click events?
Is there any way to add event listener like Notification.onclick but which will be triggered by double clicks? Like if I want to edit a task by double clicking on it
3 Answers
Joshua Kelly
18,830 PointsYes.
Pure JavaScript:
http://www.w3schools.com/jsref/event_ondblclick.asp
Using Jquery:
http://stackoverflow.com/questions/13633789/jquery-on-with-doubleclick-event
also:
Max Bulygin
5,601 PointsYay! It worked! Thanks a lot. MDN documentation still a bit confusing for me, so thanks for your help
Joshua Kelly
18,830 Pointsdon't just rely on MDN. There is stackoverflow and the actual jquery site. Don't be afraid of google.