jQuery Exercise: Intermediate II

Drag the images to solve the puzzle.

  • The same ninja photo
  • The same ninja photo
  • The same ninja photo
  • The same ninja photo
  • The same ninja photo

Click on each image slice to change the overall picture.

Originally I tried to do this with replaceWith but then figured out that you can only replaceWith an element and src is an attribute (thanks Elyem!). Using .attr worked.

  • piece 1
  • piece 2
  • piece 3
  • piece 4
  • piece 5