It's not a secret anymore!*
The moose likes PHP and the fly likes How to use optgroup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » PHP
Reply locked New topic
Author

How to use optgroup

Mahtab Alam
Ranch Hand

Joined: Mar 28, 2012
Posts: 222

How to work with optgroup , to retrieve the selected option.
I want to insert the selected option in the database , how can i do that.

How to get the selected value and make a query to insert in the table in database.


Oracle Java Programmer , Oracle SQL Expert
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

The same way as any other select element. The use of optgroups does not change how a select functions.

Please continue in your original post.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: How to use optgroup
 
Similar Threads
modify this code to require select instead of a checkbox
Dropdown Selected
How to get selected option with select tag?
javascript for popup on selected item in dropdown
doubt regarding dropdown list