title: How do I display Text in HTML based on an option selected from a Drop-Down Menu?
body: <p>So what I've been trying to do is have a drop-down menu with options in it and have some text display depending on which option is selected.</p>
  
  <p>I came to the conclusion of using HTML and JavaScript to do it, but I am having trouble.</p>
  
  <p>For the HTML, I have this - </p>
  
  <pre><code>&lt;select id="selectDay"&gt;
  &lt;option&gt;Choose a Day&lt;/option&gt;
  </code></pre>
  
  <p></p>
  
  <p>And for the JavaScript I have this - `</p>
  
  <pre><code>var select = document.getElementById("selectDay");
  var response1 = ("Response if a Day between Monday through Friday is Selected");
  var response2 = ("Response if Saturday or Sunday are selected");
  
  var days = ["Sunday", "Monday", "Tuesday", "Wednesday" , "Thursday", "Friday", "Saturday"];
  
  for(var i = 0; i &lt; days.length; i++) 
  {
  var opt = days[i];
  var el = document.createElement("option");
  el.textContent = opt;
  el.value = opt;
  select.appendChild(el);
  
  }
  </code></pre>
  
  <p>I got this far mainly through use of Google, but I'm stumped now. I'm just trying to do this so I can say I completed a project. I'm not even sure if I'm doing it correctly.</p>