Animating divs using jQuery

I want to animate a series of divs with the same dimentions and I'm using Jquery to cancel css top marging on load as to simulate the divs moving to top I currently have the fallowing jquery:

    $('#some_div').animate({'margin-top': '0px'}, 1000);

This only seems to work with the top div. Is there a way to create some sort of loop so my jquery simulates this effect on all divs with that same name.


Your jQuery selector points to an item by ID. by definition an ID should only ever refer to one element. Change it to a class selector to animate many items and give them all the same class.

Need Your Help

How to save layered pyCairo pyGTK image

python pygtk pycairo

This is sort of a repeat of an earlier question, but clarified.

How do I match Unicode special alpha characters while NOT matching special characters

javascript regex unicode

I have a dilemma here. I am trying to write a regex pattern that matches all alpha characters for eastern languages as well as western languages. One of the criteria is that no numbers can match ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.