• Post Reply Bookmark Topic Watch Topic
  • New Topic

Option under option  RSS feed

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65898
135
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!