Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Option under option

 
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
Pie
Posts: 65218
95
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic