Reputation: 1
I have the following code and i am getting an error message stating object doesn't support that property on the line where i try to rotate the images ($("#img1").rotate(90);). So wanted to know if i am doing anything wrong?Just banging my head with this error since morning....Can any one pls advise?
$(document).ready(function() { $("#img1").rotate(90); });
i have put the id of the image tag as "img1".
Upvotes: 0
Views: 3068
Reputation: 20640
Are you sure the selector is working?
$Items = $("#img1");
if ($Items.length == 0)
alert("Not Found!");
Upvotes: 0
Reputation: 3377
This may be a stupid question but are you including the jqueryrotate library?
http://code.google.com/p/jqueryrotate/
Upvotes: 1