if i type this:
test.innerHTML += "<img src=./images/pink.JPG>"+"<label> <input type='radio' name='choices' value='A'></label>";
i am able to display the image pink. However how would i do this by using a variable i.e picture = "pink.JPG"
i have tried
test.innerHTML += "<img src=./images/' + picture + '>"+"<label> <input type='radio' name='choices' value='A'></label>";
however it doesn't work. What would be the correct way?