How it works…

Unfortunately, at the time of writing this book, the plugin was not ready to be used with Bootstrap 4. However, with some research into the issue threads on the plugin's official GitHub repository, we were able to find a developer who had similar requirements and successfully ported the plugin to Bootstrap 4 prerelease.

To make the plugin work with Bootstrap 4 alpha.6, we had to CDN the CSS and JS files from GitCDN. For our HTML structure, we added some minimal markup in recipe06-04.ejs using the select HTML element. All that was left was to slightly tweak the CSS for the dropdown to make the custom select element fit in perfectly with the rest of the Bootstrap 4 styles.

The end result is a multi-select dropdown that includes ...

Get Bootstrap 4 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.