Hi,
I have a form to edit post categories. Posts can have three categories and the form shows three checkboxes with the current post categories checked.
See hidden link
Now, I need to submit the form when one of the checkboxes is checked/unchecked.
Submit button is removed.
Is it possible?
Thanks!

Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Jorge,
Thank you for getting in touch.
This is possible but you will have to use custom coding to get this to work.
What you will need to do is adapt the code in the link below to your form in order for it to submit the form.
https://stackoverflow.com/questions/18135420/jquery-javascript-submit-form-when-checkbox-is-clicked
This code will go to the JS section
Please let me know if this helps.
Thanks,
Shane
Hi Shane,
Thank you for your reply.
This is the code that I have in JS section:
$(".wpt-form-item-checkbox").change(function() {
$(".cred-form").submit();
});
But it doesn't work.
Regards.

Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
I've modified the code some more to submit only the selected form.
jQuery("input[type='checkbox']").change(function() {
jQuery(this).submit();
});