title: Javascript switch not triggering
body: <p>I have inconsistent behavior with a  dropdown and a switch statement. The select calls a routine that writes its index to a cookie which seems to work fine.</p>
  <p>Change the index via the select and and the switch is ignored. I've tried it with string case values and numeric. The value for the select's index always prints correctly to the console. What am I missing?</p>
  <pre><code> &lt;label style=&quot;font-size:25px;&quot; for=&quot;frq&quot;&gt;Freq&amp;nbsp;&lt;/label&gt;
   &lt;select style=&quot;font-size:25px;&quot; width=&quot;20&quot;  id=&quot;frq&quot; onchange=&quot;changeFRQ()&quot;&gt;
    &lt;option value=&quot;600&quot; selected&gt;600&lt;/option&gt; 
    &lt;option value=&quot;650&quot;&gt;650&lt;/option&gt; 
    &lt;option value=&quot;700&quot;&gt;700&lt;/option&gt;
    &lt;option value=&quot;750&quot;&gt;750&lt;/option&gt;
    &lt;option value=&quot;800&quot;&gt;800&lt;/option&gt;
    &lt;option value=&quot;850&quot;&gt;850&lt;/option&gt;
  &lt;/select&gt;
  
  
  function frequency(value) {
  
  document.getElementById(&quot;frq&quot;).selectedIndex = frq;
  
  console.log(&quot;frq:&quot;+ frq);
  
  
  switch(frq) {
    case &quot;0&quot;:
      freq=600;
      console.log(&quot;600&quot;);
      break;
    case &quot;1&quot;:
      freq=650;
      console.log(&quot;650&quot;);
      break;
    case &quot;2&quot;:
      freq=700;
      console.log(&quot;700&quot;);
      break;
    case &quot;3&quot;:
      freq=750;
      console.log(&quot;750&quot;);
      break;
    case &quot;4&quot;:
      freq=800;
      console.log(&quot;800&quot;);
      break;
    case &quot;5&quot;:
      freq=850;
      console.log(&quot;850&quot;);
      break;
    default:
      freq=600;
  }
  
  }
  
  
  </code></pre>