title: jQuery submit form on checkbox click
body: <p>I want to submit a form whenever checkboxes are clicked (I already have ajax set up with Rails) - this means even if it gets unchecked. Also I never want the click handler to unbind, so a user can click a checkbox as many times and the form will get submitted each time.</p>
  
  <pre><code>$(":checkbox").click(function() {
    $(this).closest("form").submit();
  });
  </code></pre>
  
  <p>The above code works fine, but it stops working after the first click. How would I make it so that the above code will work even when a user clicks a checkbox more than once?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I am replacing the contents of the form (including the checkboxes) on submission of the form.</p>