Multidimensional Arrays

0 Simran Sodhi · December 31, 2014
I'm creating a quizing game, which requires the user to answer based on the image they see, and i'm using a multidimensional array to store my questions and answers. Im able to input questions if they were text questions, but dont know how to insert an image so the user can see the image to answer the question

Post a Reply


Oldest  Newest  Rating
0 Jay Tauron · December 31, 2014
Possibly in the array (although using JSON for this may be easier for what you're doing), you could store a link pointing to the image file location and change the src of an img tag in the DOM.
+1 Abdullah Nauman · January 13, 2015
Or Use InnerHtml, to render the whole tag
  • 1



A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.