Script to min/max addon item
-
In the addon select i would like to require a minimum and a maximum choice.
ie: pizza > check min 2 ingredients / max 4 ingredients
For minimum i added a script in post and it’s work:
<script> jQuery('input[type=checkbox]').change(function(e){ if (jQuery('input[type=checkbox]:checked').length > 4) { jQuery(this).prop('checked', false); } }); </script>
But i didn’t found for max.
Thanks.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Script to min/max addon item’ is closed to new replies.