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 select an item in dropdown box. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "select an item in dropdown box. " Watch "select an item in dropdown box. " New topic

select an item in dropdown box.

Abhijit Das
Ranch Hand

Joined: Sep 25, 2007
Posts: 156

I want to dynamically set the selected item in a dropdowm list box. That is ,I have two drop down list boxes. with two items only viz. TRUE and FALSE for each one.
Now, once I select TRUE, then other must be automatically set two FALSE. and vice versa. That is no two boxes can have TRUE at the same time.

F F -> OK
F T -> OK
T F -> OK
T T -> ERROR, should be False.

Abhijit Das
SCJP 5.0 | SCWCD 1.5
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385

I agree. Here's the link:
subject: select an item in dropdown box.
It's not a secret anymore!