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(f开发者_开发知识库unction() { $("#img1").rotate(90); });
i have put the id of the image tag as "img1".
Perhaps the jqueryrotate script is not being loaded properly.
This may be a stupid question but are you including the jqueryrotate library?
http://code.google.com/p/jqueryrotate/
Are you sure the selector is working?
$Items = $("#img1");
if ($Items.length == 0)
alert("Not Found!");
精彩评论