- 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>
- Next, let's add another line of code to the bottom of _js.ejs:
<%- partial("_recipe-06-13-js") %>
- 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"> ...