Set an image using the popup element

syscomp

New Member
I am currently using Dashcode. I have a popup element (popup) and an image (image). I have set the value of the items in the popup element to correspond with the image file name. I have used this code: \[code\]{{var image = document.getElementById("image");var popupValue = http://stackoverflow.com/questions/14046909/document.getElementById("popup").value;image.firstElementChild.src = http://stackoverflow.com/questions/14046909/popupValue();}}\[/code\]I want to be able to select the name of an image from the popup element (popup), and set it as the image element (image). Any suggestions?
 
Back
Top