There is a standard bootstrap validation script:
\'use strict\' var forms = document.querySelectorAll(\'.needs-validation\') Array.prototype.slice.call