On 2 September 2015 at 12:39, Milley Duke <li...@ruby-forum.com> wrote:
> Hi Colin,
>
> The query which i am using on my form is :
>
> = f.select(:word_ids, Word.order(:text).collect {|w| [ w.text, w.id ] },
> { label: "Words" }, { multiple: true })
>
> I am able to select a value from dropdown list of values.If i want to
> select the same value again then i can't see that value in the dropdown
> list anymore.
>
> Is there any way that i can see the value in dropdown list irrespective
> of how many times i have selected the value.
>
> Also,please find attached screenshot.

I believe that the word is still there in the list, but it is styled
so that the background and text are the same colour so you cannot see
the text.  Normally the currently selected item would be highlighted.
I guess you have specified something in a stylesheet that has caused
this.  In Firefox you can use Tools > Web Developer > inspector to
examine the styles.

Colin

>
> Thanks,
> Milley
>
> Colin Law wrote in post #1178473:
>> On 2 September 2015 at 12:21, Milley Duke <li...@ruby-forum.com> wrote:
>>> Hi,
>>>
>>> When I am selecting a particular value from DropDown(values are being
>>> populated from DB), is it possible to show the same value in dropdown.
>>>
>>> Currently,when i am selecting any value from the dropdown the selected
>>> value is no longer visible in the dropdown list.
>>
>> Sorry, I have no idea what you mean.  Please show us the section of
>> code you are using to display the dropdown and explain in more detail
>> what is going wrong.
>>
>> Colin
>
> Attachments:
> http://www.ruby-forum.com/attachment/11078/Screenshot1.png
> http://www.ruby-forum.com/attachment/11079/screenshot2.png
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/4528061c72158d8661ae59cf14699267%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtBR6M%2BMzzQQfC9x9zHiXVOatdQ%2BwFtbaiTajY543jx1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to