Multi.js – A User-Friendly Select Box Built on Plain JavaScript

Select menus are obsolete though they work. Same goes for all a standard form inputs such as checkboxes and radio buttons.

It’s easy to emanate your possess forms though rebuilding interface elements from scratch can be tough. That’s because Multi.js is such a profitable plugin for replacing default name boxes.

With Multi.js, we give visitors a list of equipment to collect from with a multi-select underline built into a form. This approach users can click mixed items though relying on checkboxes.

Multi.js name pluginMulti.js name plugin

This book even supports a hunt feature, so users can hunt for equipment if a list is generally long.

I also find a menu flattering intuitive, so it doesn’t need most explaining. You click any object on a left-hand side to supplement it to a right mainstay (or “selected” items). Then, click on equipment in a right mainstay to mislay them.

Everything runs on vanilla JavaScript, including a hunt feature, so we don’t need any dependencies. Although, it does support jQuery if your site uses that library.

All we need is a Multi.js record and a CSS stylesheet to go along with it. Next, we only create a select element and target a component with a JavaScript function, like so:

var select_element = document.getElementById( 'your_element_ID' );
multi( select_element );

Right now, a plugin does not support optgroups though this underline is in a works.

Either way, a default functionality is stunning. It works only as you’d design and it even supports mobile manageable layouts.

To learn more, check out a GitHub repo that also includes downloadable files. The Multi.js demo page is good for saying how this plugin works in a browser. But really, it’s only a elementary approach to restyle your name menus while improving your form’s overall user experience.

Add Comment