0
   

How to use JavaScript for my complex validation requirements?

 
 
Reply Sat 8 Oct, 2016 02:20 pm
I am trying to limit the number of checkboxes based on the radio button choice. I have 4 radio buttons and 12 checkboxes and I want the user to be able to pick:

a minimum of 2 checkboxes and a maximum of 4 checkboxes when he selects the first radio button,

a minimum of 5 checkboxes and a maximum of 6 checkboxes when he selects the second radio button,

a minimum of 7 checkboxes and a maximum of 8 checkboxes when he selects the third radio button,

a minimum of 10 checkboxes and a maximum of 12 checkboxes when he selects the fourth radio button.
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 580 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » How to use JavaScript for my complex validation requirements?
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 02/05/2025 at 02:52:47