I have this thumbnail list and would like push the image paths (sources) into an array: tn_array
You can loop through ever img element:
img
var tn_array = Array(); $('#thumbnails img').each(function() { tn_array.push($(this).attr('src')); });