This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Option under option Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Option under option" Watch "Option under option" New topic
Author

Option under option

Mahtab Alam
Ranch Hand

Joined: Mar 28, 2012
Posts: 354

How can i implement options under option in html.

I`m making a form which have four option , so i used select tag with four option.
But the second and third option have options in themselves.
So how can i do that .


http://www.mahtabalam.net , Oracle Java Programmer , Oracle SQL Expert , Oracle Java Web Component Developer
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

You can't. The HTML select element does not support nested options. You might want to use optgroups.

As this has nothing to do with PHP, it's been moved to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Have you checked out Aspose?
 
subject: Option under option
 
jQuery in Action, 3rd edition