Select a field with a 50 second word selection

I have a few subtopics that I would like to select using the select / drop down box. The problem is that each subtopic is 30-50 words. Does anyone know how I can have multi-line selections within a selection field? Right now I can show a selection, but because of my page size.

Maybe jQuery has a solution, but not sure, since I'm not very familiar with jQuery

+4
source share
3 answers

Better to use autocomplete

To make dropdowns multi-line, just edit css .ac_results li to make it taller (e.g. change line-height )

+2
source

Instead of using an element of select-HTML content, perhaps consider using a div with n other divs inside it, each with their identifier as the identifier of the subtopic (probably you will need to add something if the identifiers are numeric). Show the div on click whatever, select a subtopic when you click on a single subtype of a div. Then you can style the divs as you want, allowing text wrapping, etc. This also works well with an unordered list.

WITH

0
source

I would change my mind using something other than select, instead of using a div (or dialog or accordion ) with selectable in it using jQuery UI.

0
source

All Articles