For my application I'm trying to create a drop-down with multiple
select that has multiple values already selected. I have the values
that I need to select in an array, but I don't know how to tell my
'select' statement how to highlight them.
For my application I'm trying to create a drop-down with multiple
select that has multiple values already selected. I have the values
that I need to select in an array, but I don't know how to tell my
'select' statement how to highlight them.
Now I just need to make this drop-down select all of the items that are
in an array: 'options_to_select = [1,2,3]' for example.
Thank you for your time,
Jd
Drop down selects cannot select more than one item. if you need to do
that, you need a multi-select control. Just specify :multiple=>true in
a select_tag.