I want to dynamically add label and image in my code.When I added label its working fine but when I tried to add image.its not working.
for(var i=0;i<output.length;i++){
var shopname=$("<label id="+output[i].branch_id+">"+output[i].myfavourite+"</label>");
var shopimage=$("<img id="+output[i].image+" float="left" width="100px"/>");
$("#id").append(shopname).append(shopimage);
}