Function only works once?
Hi,
I want to rotate an image 90° after a user clicks on a button. It works, but only once? I thought the image would be keep rotating as long as the user is clicking on the button ...
- $('#rotateImageButton').live('click', function() {
-
- $('#image').rotate(90);
-
- });
How can I let the image rotate 90° each time I click, instead of only once?
And my second question regards a selector. The image is the only image in the #fileDialog. I tried a selector like: $('#fileDialog > img') or $('#fileDialog:image') but that didn't work ...
Thanks for your advice!
Christophe