Heera/public/assets/js/pages/form-validation.init.js

1 line
323 B
JavaScript
Raw Permalink Normal View History

2024-05-16 03:46:08 +00:00
!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)}();