I have this HTML:
Intermediate steps →
Try this to return all src:
map = Function.prototype.call.bind([].map); map(document.querySelectorAll(".image"), function(o){ return o.src; });
or set src just with
o.src="whatever";
Here is the Fiddle.
Look MDN for compatibility of map.
map