Questions tagged [multiple-select]

383 questions
108
votes
8 answers

Javascript/jQuery: Set Values (Selection) in a multiple Select

I have a multiple select: box showing as a vertically expanded box (not a Dropdown). So i set it as multiple. Then it is showing correctly as: with multiple="multiple". I need to add values to the selected list (i.e. not to all the options, but to the selected options, without adding a new option). I know I can set the selected options with…
user1544337
12
votes
3 answers

Android ListView with multiple select and custom adapter

I have a ListView with a custom adapter. The ListView allows multiple select, but somehow it's not recognising when an item is selected. I've already made the adapter items extend Checkable, but still the getCheckedItemPositions()returns an array of…
Pingless
  • 551
  • 1
  • 6
  • 8
11
votes
3 answers

Get Value of Disabled Option in Select Multiple Jquery

I have a multiple select on my page, and I have an option disabled so that the user can't unselect them, but I can't work out how to get the value of the disabled option. My code so far // Get selected positions var $selPositions =…
dpDesignz
  • 1,803
  • 8
  • 34
  • 64
10
votes
4 answers

Returning values from multiple selection ListView

Edit: Okay, I found a solution. Don't know that it's the proper solution, but it does work correctly. Added to the code below. I'm trying to allow a user to select a number of directories from a checklist, and return them upon clicking a "Submit"…
Kevin Coppock
  • 128,402
  • 43
  • 252
  • 270
9
votes
3 answers

Html: For Select multiple, only one value is submitted but .val() returns array of two values

When rendering the page, the val() of a multiple select is set with a single value. For example, $("#my_select_box").val(1); Then the user selects an additional value in the multiple select box. When the form is submitted, only the newly selected…
Maddy.Shik
  • 6,241
  • 15
  • 62
  • 98
9
votes
2 answers

check if multiple select has option selected

I have the next select: