How to do it…

  1. Let's begin by adding the script tag to app/partial/_js.ejs:
<script src="https://gitcdn.xyz/repo/SergeIpatyev/svalidatejs/master/svd.js"></script>
  1. Next, let's add another line of code to the bottom of _js.ejs:
<%- partial("_recipe-06-13-js") %>
  1. Open the file titled recipe06-13.ejs and add the following code on line 15:
 <form method="post"> <div class="form-group row"> <label for="inputCustom" class="col-sm-2 col-form-  label">Custom</label> <div class="col-sm-10"> <input type="text" class="form-control" id="inputCustom"   placeholder="Custom input"> <small class="text-muted"></small> </div> </div> <div class="form-group row"> <label for="inputEmail" class="col-sm-2 col-form-  label">Email</label> <div class="col-sm-10"> ...

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.