3

I have a problem , i know only the basics of jQuery , and i need to get the information with JavaScript about selected options from the list , i wasted 2 days searching for a good method , but without success , please help ... script of MultiSelect is here link text , I need only to get the title of selected option and numbers of selected elements , or to give idea how to do... Sorry for my English

mIRU
  • 617
  • 3
  • 14
  • 32
  • There doesn't seem to be an API to do that; I'd ask the plugin's author. The best I can come up with is `$("form").serializeArray()` and work with that. I get more and more convinced that jQuery leans too much to the "dynamic" side.. – Nickolay Jan 10 '10 at 20:03

1 Answers1

2

it turns your select box into a bunch of checkboxes. so you'd get the info the same way you'd get it from checkboxes.

Select values of checkbox group with jQuery

if your multiple select box had id='option8' then your checkboxes would have name='option8[]'

Community
  • 1
  • 1
Brandon Henry
  • 3,632
  • 2
  • 25
  • 30
  • Thanks a lot ! I solved the problem , i didn't think about this method , i was concentrated how to get from data from api of script , and i spent a lot of time searching for information to solve the problem , after your answer , i spent only 20 min ... Thanks ! – mIRU Jan 11 '10 at 17:55