How to show long text in select and option without abbreviations, Select2 - improved lists
Often there is a need to place an element on a site page to select a value from a list. The values in such a list can have long names and it may be necessary that they be displayed without abbreviations. This problem cannot be solved by standard means of simple select , but it is possible to solve it in other ways.
Select2 is a plugin for jQuery Libraries , which has rich capabilities for creating improved lists. Some of its features are worth highlighting:
- search among values by keywords;
- hover tooltips;
- full display of all text in the expanded list without abbreviations;
- convenient implementation of working with multi-selection;
- loading data into lists using AJAX;
- the ability to dynamically add new elements;
- the ability to create groupings by levels, etc.
You can download the plugin from the official website, where you can also find instructions for connecting and configuring. To change the look of the list, simply apply CSS styles . This plugin makes it a breeze to create improved lists.
- IT / Misc 08.07.21 How to make a free translation for a website without an API, translate documents in Google Translate
- IT / Misc 06.07.21 How to make a subscription button on a website, a subscriber base and automatic mailing
- Food / Misc 06.07.21 How to quickly cook delicious fried pies with potatoes and onions
- IT / Misc 04.07.21 Caching - create, load and reset. Where to store the cache, methods and types of caching
- IT / Database 03.07.21 Custom NoSQL - storing data in files and not only in a database. Storing settings, small data and caching files