Can you provide more information, such as the HTML part of the multi- selection box?
On Feb 10, 6:14 pm, min <inuyasha...@gmail.com> wrote: > Hi, James > > I have tried $('#selection').val(); , it still can only get the first > value from the values which I have selected. > > On Feb 11, 1:20 pm, James <james.gp....@gmail.com> wrote: > > > $('#selection').val(); > > will get you an array of values. > > > $('#selection').val()[0]; > > will get you the first index of that array > > > or you could set it as a variable to get the value: > > var list = $('#selection').val(); > > list[0]; // first in array list > > > On Feb 10, 3:04 pm, min <inuyasha...@gmail.com> wrote: > > > > Hi, the following code can only get one selected value in the > > > multiselection. > > > > $('#selection')[0].value > > > > However, I want to get all the selected values from the multiselection > > > > Could you please give me some suggestions > > > > thanks > > > min- Hide quoted text - > > > - Show quoted text - > >