I tried this way but it didn’t work:
var imglunch = new Image();
imglunch.src = "../images/faciliteit_lunch.png";
var imgdiner = new Image();
imgdiner.src = "../images/faciliteit_diner.png";
$('.greenfluxlist').append('<li id="' + element.Identifier + '"><a href="bla.html" rel="external">' + imglunch + imgdiner + '</a></li>');
Anyone know how to add it?
Simply let’s use the jQuery function to create your img elements:
Or you can append your html code all in once: