title: JQUERY: How do I select an option by value?
body: <pre><code>&lt;tfoot&gt;
      &lt;select&gt;
          &lt;option value="222"&gt;&lt;/option&gt;
          &lt;option value="2222"&gt;2222&lt;/option&gt;
          &lt;option value="zaza"&gt;zaza&lt;/option&gt;
      &lt;/select&gt;
  &lt;/tfoot&gt;
  </code></pre>
  
  <p>I tried that: </p>
  
  <pre><code>$('tfoot select').val('zaza');
  </code></pre>
  
  <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>$("tfoot select").val("zaza")</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;tfoot&gt;
      &lt;select&gt;
          &lt;option value="222"&gt;&lt;/option&gt;
          &lt;option value="2222"&gt;2222&lt;/option&gt;
          &lt;option value="zaza"&gt;zaza&lt;/option&gt;
      &lt;/select&gt;
  &lt;/tfoot&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any idea ? 
  Select = make it selected = trigger the change event</p>