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 trial

JavaScript

HTML5 game

Hey guys I was just checking out google's santa tracker app when i came across this fun game: https://santatracker.google.com/#codelab and I would really love to try and replicate it for fun!! Would anyone have any idea how i would go about coding the click and drag code blocks?? thanks!!

1 Answer

If you don't mid using Jquery take a look at the Jquery Draggable widget.

Jquery API

this will allow you to drag and drop div's.