It's all in the documentation.

On 11 Mar 2010, at 15:11, Aske wrote:

> cool thanks everyone. i went with:
> 
>                       
> $('imageContainer').getElements('img').each(function(img, index) {
> 
>                                       img.addClass('image'+ index);
> 
>                       });
> 
> Since i have to do some other stuff inside the function.
> 
> One last question, how do i add an "ID" to an element, i don't see any
> addID function?

Reply via email to