title: Chrome Extension - Trigger events on content_scripts using JQuery
body: <p>I wrote a Chrome Extension that automatically fills some registration forms. There are some select fields that need to be triggered on "<strong>change</strong>" event in order to start some Ajax calls.</p>
  
  <p>First I use JQuery attr or val to change the value of the select field, and than I use <strong>.trigger</strong> to invoke the "change" event, but this last one doesn't work.</p>
  
  <p>Example:</p>
  
  <blockquote>
    <p>I want to select the option that contains the word "London" and invoke
    the change element in order to start some operations of the native
    code that have some listeners on "change" event</p>
  </blockquote>
  
  <pre><code>jQuery("#SelectElement option:contains('London')").attr("selected", "selected"); 
  jQuery("#SelectElement").trigger("change"); &lt;--- not works
  </code></pre>
  
  <p>I tried also:</p>
  
  <pre><code>jQuery("#SelectElement option:containt('London')").attr("selected", "selected").change();
  </code></pre>
  
  <p>But if I try this code on <strong>console</strong>, it works.</p>
  
  <p>Suggestions? </p>