I feel like this has a very simple solution, but I am trying to get this to work for probably too long now.
I’ve made a function to render an image, atleast that’s what it’s supposed to do, but it doesn’t.
function renderAD(entries) {
var o = '';
$.each(entries, function(i, v) {
o +="<img src=" +v.image +"/>";
});
$("#adplace").html(o);
}
I checked that v.image refers to http://allroundcars.nl/logo-ijsselmondenieuws.png, which is the image I want to load. But all I see is a '?' image (image not found).
What am I doing wrong? Any help is appreciated,
Thanks
Try replacing your each with:
Update: to add an
<a>around it: