title: How to get the values and text of all the options of select element
body: <p>I have a select element with a huge list of options (more than 2000). </p>
  
  <p>I'd like to get the values and name of each option, one by line. </p>
  
  <pre><code>&lt;select name='county_city' id='county_city'&gt;
    &lt;OPTION value="51421"&gt;City one&lt;/OPTION&gt;
    &lt;OPTION value="51422"&gt;City two&lt;/OPTION&gt;
    &lt;OPTION value="51423"&gt;City three&lt;/OPTION&gt;
    &lt;OPTION value="51424"&gt;City four&lt;/OPTION&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>What I'd like is, </p>
  
  <pre><code>51421 = City one
  51422 = City two
  51423 = City three
  51424 = City four
  </code></pre>
  
  <p>One option per line.. </p>
  
  <p>Thanks. </p>