Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This snippet will allow you to use a radio button field to submit the form without using the submit button.
<script>
 jQuery(document).ready(function($) {
 $('input[type=radio]').on('change', function() {
 $(this).closest("form").submit();
 });
});
</script>
@chrisegg

This comment has been minimized.

Copy link
Owner Author

@chrisegg chrisegg commented Dec 25, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment