File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes comparing two checkbox groups Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "comparing two checkbox groups" Watch "comparing two checkbox groups" New topic

comparing two checkbox groups

JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303
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?

SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63542

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?

[Asking smart questions] [About Bear] [Books by Bear]
Consider Paul's rocket mass heater.
subject: comparing two checkbox groups
It's not a secret anymore!