I’m trying to use jQuery rotate to animate an image once it’s containing anchor tag is clicked. The anchor tag has the class .show_hide. The code below is getting the correct element, but it isn’t rotating.
http://code.google.com/p/jqueryrotate/wiki/Examples
$(function()
{
$('.show_hide').click(function()
{
var $icon = $(".show_hide img");
$icon.rotate({animateTo:180});
});
});
What am I doing wrong? Thanks.
Ok I figured out it was to do with the way I was including the plugin.
This wasn’t working
So I changed it