i'm trying display 3 objects image properties in single container using document.getelementbyid. code displays first image. possible, or going wrong way?
var flop = function(){ document.getelementbyid("flop").innerhtml = (deck[0].image); document.getelementbyid("flop").innerhtml = (deck[1].image); document.getelementbyid("flop").innerhtml = (deck[2].image); }
var flop = function(){ var temp = document.getelementbyid("flop") deck.foreach(function(val){ temp.innerhtml += val.image }) }
Comments
Post a Comment