title: Change Background Color of div through submit form?
body: <p>Was a bit unsure how else to word this, JavaScript is the main thing I NEED to learn but after putting hours and hours in i still can't write javascript code off the top of my head. I understand the syntax of just about everything but when it comes to integrating it with css or html I am clueless!</p>
  
  <p>Heres the code:</p>
  
  <p>HTML:</p>
  
  <p><code>&lt;div id="mydiv"&gt;
    &lt;input type="text" name="colorpicker"&gt;
    &lt;input type="submit" value="Submit"&gt;
  &lt;/div&gt;</code></p>
  
  <p>JavaScript:</p>
  
  <pre><code>document.getElementById("mydiv").style.backgroundColor="colorpicker.Submit";
  </code></pre>
  
  <p>bare in mind i've had little experience with forms and inputs in html too.</p>
  
  <p>Any reply would be much appriciated! Thanks!</p>