I have a div with multiple objects inside, images, letters, ect.
how do I move them separately? right now they just move together in the same direction when I apply offset() to the class.
and another question, how do you write a loop so that you can have an arbitrary number of items inside the same div?
thanks!
<div class="toMove">
A
B
C
</div>
$('.toMove').offset( {left:5 , top: 5} );
this moves all of them, how can i move them to different locations?
what if I want to create an arbitrary number of letters to move around to different locations?
Don’t apply
offset()to the entire class; apply it to each individual item by ID.Your second question makes no sense to me. Please clarify exactly what you mean, preferably with a code sample.