Raffales-LMS/public/js/form-validation.init.js

1 line
385 B
JavaScript
Raw Permalink Normal View History

2024-04-16 09:58:24 +00:00
!function(){"use strict";window.addEventListener("load",function(){var t=document.getElementsByClassName("needs-validation");Array.prototype.filter.call(t,function(e){e.addEventListener("submit",function(t){!1===e.checkValidity()&&(t.preventDefault(),t.stopPropagation()),e.classList.add("was-validated")},!1)})},!1)}(),$(document).ready(function(){$(".custom-validation").parsley()});