This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 15376

Consider Paul's rocket mass heater.
subject: select an item in dropdown box.
Similar Threads
Dblclick and Click event handlers not invoked - used jQuery
Struts Doubt
problem in Netscape list box
??? Make JComboBox drop UP instead of DOWN ???
Finding problem in setting a value for h:selectBooleanCheckbox