Jackz Wrote: function foo() { var colors = ["white", "red", "blue", "green"]; var color = document.getElementById("select").value; var selection = document.getElementById("select").selectedIndex; document.getElementById("p").innerHTML = "Your favorite color is: " + color; document.body.style.background = colors[selection]; }