Skip to content

Instantly share code, notes, and snippets.

@greghunt
Created March 12, 2018 14:40
Show Gist options
  • Save greghunt/10b36aa8c738f8aaa39e7d787f7d2b87 to your computer and use it in GitHub Desktop.
Save greghunt/10b36aa8c738f8aaa39e7d787f7d2b87 to your computer and use it in GitHub Desktop.

Revisions

  1. greghunt created this gist Mar 12, 2018.
    3 changes: 3 additions & 0 deletions autosubmit.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    $("[data-autosubmit]").on('change', function(){
    $(this).parents("form").submit();
    });