title: How to assign user selection / input to a javascript variable?
body: <p>Let's say I have the following:</p>
  
  <pre><code>Select a Number:
  &lt;select name="Quantity" id="selection"&gt; 
  &lt;option value="Value1"&gt;1&lt;/option&gt; 
  &lt;option value="Value2"&gt;2&lt;/option&gt; 
  &lt;option value="Value3"&gt;3&lt;/option&gt; 
  &lt;option value="Value4"&gt;4&lt;/option&gt; 
  &lt;/select&gt;
  
  Enter Something:
  &lt;input type="string" name="Input1"/&gt;&lt;/input&gt;
  </code></pre>
  
  <p>One is a dropdown menu, and one is a box you can type text in.</p>
  
  <p>I want to take what the user selects/types in and assign it to a javascript variable. I then want to pass the variable to a javascript file later in the page.</p>
  
  <p>I believe I can figure out the latter part, but how would I go about assigning the user selection/input to a variable?</p>
  
  <p>Can I do something like var one = document.Quantity.Value; var two = document.Input1.Value; ?</p>