Skip to content

Instantly share code, notes, and snippets.

@scarver2
Created March 6, 2015 16:54
Show Gist options
  • Save scarver2/225b9e595a675aad31ca to your computer and use it in GitHub Desktop.
Save scarver2/225b9e595a675aad31ca to your computer and use it in GitHub Desktop.
Auto-submit form on select change
# Submit Kaminari on limit change
selected. $ ->
$('#limit').change ->
$(this).closest('form').submit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment