Hi guys :)
I'm really stupid at jQuery ...but I got prettycheckable working! The only problem is I want to submit the form when someone clicks a checkbox or a radio button, without the need to click the submit button.
How do I achieve this?
I tried:
<script type"text/javascript">
$(":checkbox").click(function() {
$(this).closest("form").submit();
});
</script>
or
<script type"text/javascript">
$(":checkbox").on('change', function() {
$(this).closest("form").submit();
});
</script>
But neither is working. What am I doing wrong?