I'm trying to change my header to a different color based on what is chosen from the drop box options. I am using JS to update the color, but it is not changing.
function changeStyle() {
  var element = document.getElementById("changestyle");
  element.style.color = "#FF0000";
}#changestyle {
  border: 1px solid #CCC;
  width: 100px;
  height: 100px;
}<h1>Customize the Page</h1>
<form>
  <p>Pick the color
    <select id="TextColor" onchange="changestyle(color)">
      <option value="r">Red</option>
      <option value="g">Green</option>
      <option value="p">Purple</option>
    </select>
  </p>
  <input type="button" value="Update" onclick="header.style.changecolor"> 
     
    