Add input check box in form.
<form ...>
...
<label><input type="checkbox" class="[checkbox-class]"></label>
<button type="submit">Submit</button>
</form>
Initialize the script.
(function (btns) {
"use strict";
var btnsList = [];
btns.forEach(function (btn) {
btnsList.push(new PolicyCheck(btn, {
text: 'My simple warn text.'
}));
});
})(document.querySelectorAll('.policyCheck'));