Ok, I've wrote the code now to do exactly what I want:
Code:
$(function(){
var index = 0;
$('.prod img').each(function(index) {
imgDetails[index] = $(this).attr('src');
alert(index+" "+imgDetails[index]);
index++;
});
});
This stores the src values into the array.
I'm thinking now to make it multi-dimensional and add the corresponding text to each of the indexes.
What is the best way to go about doing this?
Should I be doing it at the same time as I put the src's into the array?
Regards,
LC.