This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

How to use optgroup  RSS feed

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!