I have the following checkbox
<input type="checkbox" name="compare[]" value="<?php echo $product_id ?>" />
Now, I want to let my users select minimum three and maximum three options from the above check box. Breaking of any of the rules would give a message.
Would you please kindly help me how to do that with Jquery?
Thanks in Advance
nameof the checkbox "compare[]"? Why the need for the brackets? I hope you don't think that by adding brackets to the name of an input that it'll make multiple inputs...