Select menus are primitive but they work. Same goes for all the typical form inputs such as checkboxes and radio buttons.
It’s easy to create your own forms but rebuilding interface elements from scratch can be tough. That’s why Multi.js is such a valuable plugin for replacing default select boxes.
With Multi.js, you give visitors a list of items to pick from with a multi-select feature built into the form. This way users can click multiple items without relying on checkboxes.
Read Also: 5 Free Online HTML Form Builders
This script even supports a search feature, so users can search for items if the list is especially long.
I also find the menu pretty intuitive, so it doesn’t need much explaining. You click any item on the left-hand side to add it to the right column (or “selected” items). Then, click on items in the right column to remove them.
All you need is the Multi.js file and the CSS stylesheet to go along with it. Next, you just create a
var select_element = document.getElementById( 'your_element_ID' ); multi( select_element );
Right now, the plugin does not support optgroups but this feature is in the works.
Either way, the default functionality is stunning. It works just as you’d expect and it even supports mobile responsive layouts.
To learn more, check out the GitHub repo which also includes downloadable files. The Multi.js demo page is great for seeing how this plugin works in the browser. But really, it’s just a simple way to restyle your select menus while improving your form’s overall user experience.
Read Also: Create Beautiful <SELECT> Dropdown With EasyDropDown.js