title: jquery "clear" value in select box
body: <p>So I have some markup that looks like this, And some jQuery javascript:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let color_select = $('select#SelectByColor');
  color_select.val([]);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;select id="SelectByColor" class='filter-select' name='color'&gt;
    &lt;option value=""&gt;By color&lt;/option&gt;
    &lt;option value="Red"&gt;Red&lt;/option&gt;
    &lt;option value="Blue"&gt;Blue&lt;/option&gt;
    &lt;option value="Green" selected="selected"&gt;Green&lt;/option&gt;
    &lt;option value="Yellow"&gt;Yellow&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;button id="FilterReset"&gt;Reset&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>That gets invoked when the &quot;Reset&quot; button is clicked. It pretty much works - when you
  click the reset button. the Select box value gets set to &quot;&quot;. BUT.. the visual display
  of the select box is also set to blank, not &quot;By color&quot;.  Why is this the case?</p>
  <p>In addition, according to the Chrome DevTools, the selected option is still Green.</p>