Possible Duplicate:
jQuery to loop through elements with the same class
I am trying to loop through my images that have a class.
for(var i=0; i<sizes.length; i++){
var imageSize=sizes[i];
$('.image').width(imageSize);
}
I have 10 images with the same class name, however, I want them to have different image size.
The loop will loop 10 times but I am not sure how to make each image has the specific imagesize
.
Can anyone help me with it? My brain is almost fry. Thanks so much!