Get the options in a multiple select tag


#1

Hi, guys,

Is there a method in rails to get the options of a select tag of a form,
in the controller?

Specifically, I have two multiple select tags in a form, and by clicking
a button it will dynamically update the second by copying selected
options in the first. I want to get the “final” option list of the
second select tag in the form’s onsubmit method which I wrote as a
method in the controller.

I have searched for quite a while but still get no idea. Can anyone here
give me
some hints? Thanks much in advance …


B.Y.