📜 ⬆️ ⬇️

Chosen: make drop-down lists more friendly

Chosen plugin is designed to design beautiful and convenient drop-down lists with jQuery and Prototype. To install the plugin, simply download the files and set one line:

$(".chzn-select").chosen() 
(jQuery version)

By default, in Chosen, instead of a long text list, a field is proposed, by clicking on which a list appears. Supports input auto-completion, selection of several menu items, optgroup element, etc. It looks quite native. In general, it is better to see once .
')
Since Chosen replaces the standard HTML element, you don’t need to worry about how it works with non-JavaScript browsers. Also, there is no need to change anything in the backend: the forms are submitted as usual, changes only in the user interface.

Some fork:
Chosen for MooTools
Chosen Module for Drupal 7

Source: https://habr.com/ru/post/124899/


All Articles