I have a form with multiple checkboxes (name="ID"). I need to validate that form, two checkoboxes at least need to be ticked. If one or none are ticked, there should be a pop up (or ajax overlay) telling the user to select at least two. The form shouldnt submit unless that happens.
Ive found a few scripts that Ive tried to edit, but Im not getting it to work... as an example:
This script still submits the form even though the pop up warns. Also, the pop up wont show the error message, it shows the form parameters.