Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

multiple select dropdown  RSS feed

 
Ricky Saluja
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I read the values from a multiple select dropdown and pass those values into a stored procedure.
Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66182
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technically, a dropdown cannot have more than one selected value. I'm sure that you mean a multi-select list (also created with the HTML SELECT element).
In that case (or in any case where a single parameter name can have more than one value; a check-box group for example) you would use request.getParameterValues() to get a String array of all the values.
hth,
bear
 
Ricky Saluja
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!