how to validate two seperate checkbox groups
Posted on 2012-08-28
I have a page that lists email recipients in 2 checkbox groups. List 1 is a static set of email addresses (simple to validate), and List 2 is created via a DB query, so the list is dynamic (some difficulty here).
My question comes in two parts.
1) Once the submit button is clicked I need to validate if ANY boxes in EITHER group has been checked. A false will generate a "you have to select a recipient" error. I just need to know the code for "if nothing from List 1 or List 2 has been selected..."
Thank you in advance.