Sorry, but I am a newbie in programming jQuery. I have a page with some images and I simply want to circle them around.
I mean, I would like to move the first image in place of the second one, the second one in place of the third one and so on, till the last one which would be moved at the first place. This should happen everytime I hit a button.
In Javascript this is pretty straitforward, something like this for example:
V = document.getElementsByTagName("img");
K = V[V.length - 1].src
for (i = V.length - 1; i > 1; i--)
{
V[i].src = V[i - 1].src;
}
v[0].src = K;
Now I'am trying to realize the same shift in jQuery and I wonder if there is some simple trick to use. Anyone can help me?