How to do it…

  1. In app/_layout.ejs, reference the CSS file from CDNJS:
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css" rel="stylesheet" />
  1. In app/partials/_js.ejs, call the JS file from CDNJS:
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
  1. Copy the following code and paste it into app/recipe06-05.ejs:
<div class="container"> <div class="mt-5"> <h1><%- title %></h1> <p><a href="https://v4-alpha.getbootstrap.com/components/alerts/"   target="_blank">Link to bootstrap alerts docs</a></p> </div><!-- /.container --> <div class="col-12 col-md-5"><div><div class="wrapper"><form> <div class="form-group"> <label>Make one or more selections</label> <select ...

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.