I have a table with 2 columns: Vendor Name, Transactions(checkboxes). The amount of checkboxes and their values vary depending on who the vendor is.
For example:
VENDOR NAME TRANSACTIONS
Vendor A name=checkbox value X
name=checkbox value Y
Vendor B name=checkbox value X
name=checkbox value Y
name=checkbox value Z
On clicking next, I need a javascript function that will loop through each vendor in the table and make sure that at least one checkbox is checked for each vendor. So if there are 4 vendors selected into the table by the user, then at least 4 checkboxes should be checked, but more is ok.
Each vendor needs at least one box checked.
Thanks.
For example:
VENDOR NAME TRANSACTIONS
Vendor A name=checkbox value X
name=checkbox value Y
Vendor B name=checkbox value X
name=checkbox value Y
name=checkbox value Z
On clicking next, I need a javascript function that will loop through each vendor in the table and make sure that at least one checkbox is checked for each vendor. So if there are 4 vendors selected into the table by the user, then at least 4 checkboxes should be checked, but more is ok.
Each vendor needs at least one box checked.
Thanks.