Hi I have a json array being returned from the server.. it looks something like this:
[{ ImageUrl="http://www.google.com"}, { ImageUrl="http://www.bing.com"}]
I have this:
<div id="images"></div>
and Im trying to create images based on the data, but I'm struggling with the jquery
$.each(json.imageData.ImageUrl, function (i, ImageUrl) {
$("<img/>").attr("src", ImageUrl).appendTo("#images");
});
How can i make it add images to the div?