Heera/public/assets/js/pages/form-validation.init.js
2024-05-16 09:31:08 +05:45

1 line
323 B
JavaScript

!function(){"use strict";window.addEventListener("load",function(){var t=document.getElementsByClassName("needs-validation");t&&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)}();