My Javascript goes something like this:
if (choice=="green") {
var choicecolor="#00"+num+"00"
}
...
And I need to access the variable 'choicecolor' inside an html tag. This was my failed attempt:
<div id="box" style="background-color: "choicecolor>...</div>
How can I properly put the variable inside the tag?