prasanthi
prasanthi

Reputation: 1

Rotate image by 90 degrees using Jqueryrotate plugin

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

Answers (3)

Steve Wellens
Steve Wellens

Reputation: 20640

Are you sure the selector is working?

        $Items = $("#img1");

        if ($Items.length == 0)
            alert("Not Found!");

Upvotes: 0

Woodsy
Woodsy

Reputation: 3377

This may be a stupid question but are you including the jqueryrotate library?

http://code.google.com/p/jqueryrotate/

Upvotes: 1

Yisroel
Yisroel

Reputation: 8174

Perhaps the jqueryrotate script is not being loaded properly.

Upvotes: 1

Related Questions