I think you are looking for each( callback ) http://docs.jquery.com/Core/each#callback
On Fri, Mar 20, 2009 at 12:48 PM, Thierry <lamthie...@gmail.com> wrote: > > I have a bunch of hyperlinks with class 'hello_world'. I want to > assign each one of them a random colour. I can set the colour for all > of them with the following: > > $("a[class=hello_world]").css("color", "red"); > > How can I iterate over every element with class name 'hello_world'?