jQuery + Ruby on Rails Repeating Code
<p>I have the following jquery method:</p>

<pre><code>(function($){
  $(document).ready(function() {
      $("select[name='publication_type[category]'] ").change(function (){
          alert("It works");

       });

    });
})(jQuery);
</code></pre>

<p>It operates on the following ruby code:</p>

<pre><code>select("publication_type", "category", @filters.selections.collect(&amp;:name), :id =&gt;"publication_type" ) 
</code></pre>

<p>Each time I choose a different option from the drop down box, the alert method fires twice. The intention is that it should only fire once. Any ideas?</p>

<p>Thanks in advance...</p>
