title: How to refresh jQuery Accordion select menu with a value injected by Tampermonkey
body: <p>I'm facing a situation with a website with only user accesss. I have a lot of entries to do, and I'm trying to do a script to help me in this task.</p>
  <p>The input I want to change :</p>
  <pre><code>&lt;select name=&quot;vehicleVo[year]&quot; id=&quot;vehicleVo_year&quot;&gt;
     &lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;Année&lt;/option&gt;
     &lt;option value=&quot;2019&quot;&gt;2019&lt;/option&gt;
     &lt;option value=&quot;2020&quot;&gt;2020&lt;/option&gt;
     &lt;option value=&quot;2021&quot;&gt;2021&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  <p>The Tampermonkey script change the value :</p>
  <pre><code>$(&quot;#vehicleVo_year&quot;).val(&quot;2019&quot;);
  </code></pre>
  <p>And when selected, the next select menu on the website should update and display stuff linked to the results (in our case: 2019).
  If I select manually the year 2019, everythings works fine.
  When I'm using the script, the select menu is showing 2019, but the next menu doesn't update.</p>
  <p>Here what I tried already, without errors, but without any change either :</p>
  <pre><code>$(&quot;#vehicleVo_year&quot;).trigger(&quot;click&quot;);
  $(&quot;#vehicleVo_year&quot;).change();
  $(&quot;#vehicleVo_year&quot;).accordion(&quot;refresh&quot;);
  </code></pre>
  <p>I'm not sure where the problem come from, any help would be appreciated...</p>