I am trying to rotate right this image on click Every click, the image will rotate 90 degrees right, so 4 clicks will get it to the original position. For some reason as
You are selecting by class (.theImage), but that element is assigned an id, so you should select like this $('#theImage').
.theImage
$('#theImage')