0

I have a textbox on a form that uses the #autocomplete property to provide a drop down list of options based on the text the user enters. This works great, except that some of the descriptions are very long, and don't fit in the width of the drop down.

Is it possible to make the drop down list options wrap onto more than one line so the full description is visible?

Thanks!

James

James Shields
  • 309
  • 4
  • 12

1 Answers1

1

It's not possible to get text to wrap in a drop down without a js plugin.

Something like this may be suitable.

Alternativly there is a Drupal module: jQuery selectBox

Felix Eve
  • 3,811
  • 3
  • 40
  • 50
  • That looks very useful. Any tips on how hard it would be to integrate with a Drupal page? – James Shields Feb 27 '14 at 09:05
  • Should not be too hard - just include the js and necessary html. Alternatively I've added a link to a Drupal module that provides the same functionality. – Felix Eve Feb 27 '14 at 09:32