title: Rails Trying to submit a form onchange of dropdown
body: <p>I have my Ajax working, builtin Rails javascript, with the submit button.  However, I would like it to submit when I change the value of the dropdown box and eliminate the button.  In my research I found what looks like the correct solution but I get no request to the server.  Here is my dropdown form code, note it still has the submit button that worked before I added :onchange:</p>
  
  <pre><code>&lt;% form_tag('switch_car', :method =&gt; :put, :remote =&gt; true) do %&gt;
    &lt;div class="field"&gt;
      &lt;label&gt;Car Name:&lt;/label&gt;
      &lt;%= select_tag(:id, options_from_collection_for_select(active_cars, "id", "name"), 
         :onchange =&gt; ("$('switch_car').submit()"))%&gt;&lt;%= submit_tag "Switch Car" %&gt;
    &lt;/div&gt;    
  &lt;% end %&gt;
  </code></pre>
  
  <p>Here is the HTML generated:</p>
  
  <pre><code>&lt;form accept-charset="UTF-8" action="switch_car" data-remote="true" method="post"&gt;
    &lt;div style="margin:0;padding:0;display:inline"&gt;
      &lt;input name="utf8" type="hidden" value="&amp;#x2713;" /&gt;
      &lt;input name="_method" type="hidden" value="put" /&gt;
      &lt;input name="authenticity_token" type="hidden" value="PEbdqAoiik37lcoP4+v+dakpYxdpMkSm7Ub8eZpdF9I=" /&gt;
    &lt;/div&gt;
    &lt;div class="field"&gt; 
      &lt;label&gt;Car Name:&lt;/label&gt; 
      &lt;select id="id" name="id" onchange="$('switch_car').submit()"&gt;
        &lt;option value="9"&gt;Truck&lt;/option&gt;
        &lt;option value="10"&gt;Car&lt;/option&gt;
      &lt;/select&gt;
      &lt;input name="commit" type="submit" value="Switch Car" /&gt; 
  &lt;/div&gt; 
  </code></pre>
  
  <p>Thanks in advance for any help.  </p>