File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Special select:option Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Special select:option" Watch "Special select:option" New topic

Special select:option

shlomy bentulilah
Ranch Hand

Joined: Oct 25, 2007
Posts: 37
hi guys
How can I create a select box when its content divided
into 2 group such as each group has its title...
for example a select option that has the following options :


Note that a and b are just titles and can NOT be choosen ...
Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
I dont know of a way to do what you're asking. What I've done in the past is just given the titles (a,b) bold font and a null value. It also helps to do things to make it stand
shlomy bentulilah
Ranch Hand

Joined: Oct 25, 2007
Posts: 37
Thanks for your answer ..

I seek the same functionality as in

<optgroup label="title">
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
shlomy baaaaa,

Please check your private messages for an important message from me. You can do so by clicking on My Pivate Messages in the upper right corner of the page.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Special select:option
Similar Threads
2 questions
Super Class and Sub Class
25 horses to win, place, show
A demon Thread group ???
JRadiobutton problem