Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

comparing two checkbox groups

 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have two checkbox groups -

one is group1 with values - assessment, certification, mrl, supporting assessment.

second is group2 with values - assessor, certifier, erm, ferm, supporting assessor.

my condition is if supporting assessment is checked from the first group and supporting assessor is not checked from the second group, throw an alert message to the user.

how can i do this using javascript?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If only one choice is possible in the 2nd group, why not just go ahead and set it as checked in code rather than making the user guess?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic