0

I have a collection of values showing in the dropdown. In the dropdown some of the text values are very lengthy, so am unable to view them completely. So i want to use a tooltip here, hence i can able to hover on the option then the complete value is shown.

Code is given below:

<%= select_tag(:book_id,
          options_from_collection_for_select(@books, :id, :name),
                     multiple: true, id: 'book_id') %>

Can someone help me here !

4

2 に答える 2

0

次のリンクをたどってください。役立つかもしれません。

http://www.dotnetexpertsforum.com/how-to-set-tooltip-for-dropdownlist-t561.html

于 2012-07-23T06:41:11.440 に答える