How to append two image tags in div tag using jQuery -


iam trying place 2 image tags different images/src values init, in end 2 image tags have been appended same src value instead of different. may know s wrong append:

$("<div/>", {   "id": 'card'+i,   "class": blockarr[k],   html: $("<img src='"+key+"'/><img src='_ls-global/layout-images/layout2.png'/>")  }).appendto("#gtable"); 

any ideas ?

thanks

you can supply plain html in case:

demo

$("<div/>", {   id: 'card'+i,   class: blockarr[k],   html: "<img src='"+key+"'/><img src='_ls-global/layout-images/layout2.png'/>" }).appendto("#gtable"); 

Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -