I have an image and each time I click on it I want to make it rotate 180 degrees. This is the code I tried:
<img id="showLayers" class="miniToolbarContant" src="../stdicons/GeomindIcons/slide.png"/>
$('#showLayers').click( function() {
$('#showLayers img').animate({ rotate: 180 });
});
This code does not work for some reason. Any ideas why the above code does not work?