jQuery: How to reset all element positions on page?

Posted by Rudi on Stack Overflow See other posts from Stack Overflow or by Rudi
Published on 2010-05-15T23:44:09Z Indexed on 2010/05/15 23:50 UTC
Read the original article Hit count: 191

Filed under:
|

Hey everyone.

Let's say I have a bunch of DIVs with a class of "apple", and another bunch of DIVs with a lass of "orange".

All these DIVs have various positions, but I want to use a jQuery function to assign them new positions relative to their parent containers live on the page without any reloading.

So, for example, how do I set all DIVs with the class of "apple" to a "top" value of "200px" relative to the parent container without reloading the page?

Thanks!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about colorbox