I have a form. I added a JQuery onchange submit to the number\_field tag. The same i want to do for the check\_box\_tag. I want that the form get submitted if you click on one checkbox. i tried many options but i don't get it. Hope you can help me.

```
<%= form_tag("/rooms/list", method: "get", :name => "list", :remote => true) do %>
    <%= label_tag(:size, "gewünschte Raumgröße:") %>
    <%= number_field(:room, :size, in: 0.0..999999999, step: 1.0, :value => @size, :onchange => ("javascript: document.list.submit();")) %>
    <br>
    Equipment
    <br>
    <% @categories.each do |category| %>
        <%= check_box_tag(category, {:remote => true, :onclick => ("javascript: document.list.submit();")}) %>
        <%= label_tag(category, category) %>
    <% end %>
<% end %>

```